quadr: Pairwise interactions and squares

View source: R/carrot_functions_rsq.R

quadrR Documentation

Pairwise interactions and squares

Description

Function transforms a set of predictors into a set of predictors, their squares and pairwise interactions

Usage

quadr(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 and pairwise interactions

Examples

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

CARRoT documentation built on Oct. 14, 2023, 1:06 a.m.

Related to quadr in CARRoT...