R/TS_on_LDA.R
expand_TS.Rd
Expand the completely crossed combination of model inputs: LDA model results, formulas, and number of change points.
expand_TS(LDA_models, formulas, nchangepoints)
LDA_models | List of LDA models (class |
---|---|
formulas | Vector of |
nchangepoints | Vector of |
Expanded data.frame
table of the three values (columns) for
each unique model run (rows): [1] the LDA model (indicated
as a numeric element reference to the LDA_models
object), [2] the
regressor formula, and [3] the number of changepoints.
# \donttest{ data(rodents) document_term_table <- rodents$document_term_table document_covariate_table <- rodents$document_covariate_table LDAs <- LDA_set(document_term_table, topics = 2:3, nseeds = 2) LDA_models <- select_LDA(LDAs) weights <- document_weights(document_term_table) formulas <- c(~ 1, ~ newmoon) nchangepoints <- 0:1 expand_TS(LDA_models, formulas, nchangepoints) # }