check_formulas: Check that formulas vector is proper and append the response...

Description Usage Arguments Value Examples

View source: R/TS_on_LDA.R

Description

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.

Usage

1
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

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

LDATS documentation built on Aug. 1, 2019, 5:07 p.m.