var_check: Check if main effects for all interaction effects are included in the model
If ':' is used to select a range _indep_var_ is updated
Description
Check if main effects for all interaction effects are included in the model
If ':' is used to select a range _indep_var_ is updated
Usage
var_check(indep_var, cn, int_var = "")
Arguments
indep_var
List of independent variables provided to _regression_ or _glm_
cn
Column names for all independent variables in _dat_
int_var
Interaction terms specified
Value
'vars' is a vector of right-hand side variables, possibly with interactions, 'indep_var' is the list of indepdent variables, and int_var are interaction terms