Learn R Programming

radiant (version 0.1.95)

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

Details

See http://vnijs.github.io/radiant/quant/regression.html for an example in Radiant

Examples

Run this code
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