Check if main effects for all interaction effects are included in the model If ':' is used to select a range _evar_ is updated

Share:

Description

Check if main effects for all interaction effects are included in the model If ':' is used to select a range _evar_ is updated

Usage

1
var_check(ev, cn, intv = "")

Arguments

ev

List of explanatory variables provided to _regress_ or _logistic_

cn

Column names for all explanatory variables in _dat_

intv

Interaction terms specified

Details

See http://radiant-rstats.github.io/docs/model/regress.html for an example in Radiant

Value

'vars' is a vector of right-hand side variables, possibly with interactions, 'iv' is the list of explanatory variables, and intv are interaction terms

Examples

1
2
var_check("a:d", c("a","b","c","d"))
var_check(c("a", "b"), c("a", "b"), "a:c")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.