Learn R Programming

BMSC (version 0.2.1)

addInteractionToVars: Add interactions of a specific order to a vector of variables

Description

Add interactions of a specific order to a vector of variables

Usage

addInteractionToVars(order, vars)

Arguments

order

integer: order of the interaction

vars

character: variables

Value

Character vector

Details

Interactions of variables with themselves (including polynomials of themselves) are not included.

Examples

Run this code
# NOT RUN {
BMSC:::addInteractionToVars(3, c("x1", "x2", "x3"))
# }

Run the code above in your browser using DataLab