Learn R Programming

radiant.model (version 0.8.0)

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

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

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

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

Details

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

Examples

Run this code
# NOT RUN {
var_check("a:d", c("a","b","c","d"))
var_check(c("a", "b"), c("a", "b"), "a:c")

# }

Run the code above in your browser using DataLab