var_check: Check if main effects for all interaction effects are...

Description Usage Arguments Details Value Examples

View source: R/regress.R

Description

Check if main effects for all interaction effects are included in the model

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 the dataset

intv

Interaction terms specified

Details

If ':' is used to select a range evar is updated. See https://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")

radiant.model documentation built on June 15, 2018, 9:13 a.m.