R/radiant.R
iterms.Rd
Create a vector of interaction terms for linear and logistic regression
iterms(vars, nway = 2, sep = ":")
vars | Labels to use |
---|---|
nway | 2-way (2) or 3-way (3) interaction labels to create |
sep | Separator to use between variable names (e.g., :) |
Character vector of interaction term labels
#> [1] "var1:var2" "var1:var3" "var2:var3"#> [1] "var1:var2" "var1:var3" "var2:var3" "var1:var2:var3"#> [1] "var1.var2" "var1.var3" "var2.var3"