Learn R Programming

gausscov (version 0.1.3)

fgeninter: Generation of interactions

Description

Generates all interactions of degree at most ord excluding powers of 0-1 covariates

Usage

fgeninter(x,ord,inr=T,idv=0)

Arguments

x

Covariates

ord

Order of interactions

inr

Logical to include intercept

idv

List of 0-1 dummy covariates

Value

xx All interactions of order at most ord.

Examples

Run this code
# NOT RUN {
data(boston)
bostinter<-fgeninter(boston[,1:13],2)[[1]]
# }

Run the code above in your browser using DataLab