Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

iterms

Create a vector of interaction terms for linear and logistic regression


Description

Create a vector of interaction terms for linear and logistic regression

Usage

iterms(vars, nway = 2, sep = ":")

Arguments

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., :)

Value

Character vector of interaction term labels

Examples

paste0("var", 1:3) %>% iterms(2)
paste0("var", 1:3) %>% iterms(3)
paste0("var", 1:3) %>% iterms(2, sep = ".")

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.