Check that the vector of formulas is actually formatted as a vector of formula objects and that the predictor variables are all included in the document covariate table.

check_formulas(formulas, document_covariate_table, control = list())

Arguments

formulas

Vector of the formulas to evaluate.

document_covariate_table

Document covariate table used to evaluate the availability of the data required by the formula inputs.

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.

Value

An error message is thrown if formulas is not proper, else NULL.

Examples

  data(rodents)
  check_formulas(~ 1, rodents$document_covariate_table)