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)

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