cub: Three-way interactions and squares

Description Usage Arguments Value Examples

View source: R/carrot_functions.R

Description

Function transforms a set of predictors into a set of predictors, their squares, pairwise interactions, cubes and three-way interactions

Usage

1
cub(A, n = 1000)

Arguments

A

set of predictors

n

first n predictors, whose interactions with the rest should be taken into account, defaults to all of the predictors

Value

Returns the predictors including their squares, pairwise interactions, cubes and three-way interactions

Examples

1
cub(cbind(1:100,rnorm(100),runif(100),rnorm(100,0,2)))

CARRoT documentation built on June 8, 2021, 5:09 p.m.

Related to cub in CARRoT...