This function compares results of model fitting after lm_vec(). It accepts a full model and and a reduced model and compares them using an F-test. For most scenarios, the user does not need to call this function directly. This function will be called internally from bstr_anova()

anova_vec(bstr_lm_full, bstr_lm_null, bstr_data)

Arguments

bstr_lm_full

An object of type BstrModel() returned from lm_vec(). This is a full model including both the main effect and covariates.

bstr_lm_null

An object of type BstrModel() returned from lm_vec(). This is a null model including only the covariates.

bstr_data

Object of type BstrData()

See also

bstr_anova() for most commonly used function for ANOVA, lm_vec() for vectorized linear regression, ttest_vec() for vectorized independent sample and paired t-tests.