print_model_run_message: Print the message to the console about which combination of...

Description Usage Arguments Value Examples

View source: R/TS_on_LDA.R

Description

If desired, print a message at the beginning of every model combination stating the TS model and the LDA model being evaluated.

Usage

1
print_model_run_message(models, i, LDA_models, control)

Arguments

models

data.frame object returned from expand_TS that contains the combinations of LDA models, and formulas and nchangepoints used in the TS models.

i

integer index of the row to use from models.

LDA_models

List of LDA models (class LDA_set, produced by LDA_set) or a singular LDA model (class LDA, produced by LDA).

control

A list of parameters to control the fitting of the Time Series model including the parallel tempering Markov Chain Monte Carlo (ptMCMC) controls. Values not input assume defaults set by TS_control. Of particular importance here is the logical-class element named quiet.

Value

NULL.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  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
  mods <- expand_TS(LDA_models, formulas, nchangepoints)
  print_model_run_message(mods, 1, LDA_models, TS_control())

weecology/LDATS documentation built on March 28, 2020, 11:20 a.m.