print_model_run_message {LDATS}R Documentation

Print the message to the console about which combination of the Time Series and LDA models is being run

Description

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

Usage

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


  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())



[Package LDATS version 0.3.0 Index]