powered by
Generates all interactions of degree at most ord excluding powers of 0-1 covariates
fgeninter(x,ord,inr=TRUE,idv=0)
xx All interactions of order at most ord.
Covariates
Order of interactions
Logical to include intercept
List of 0-1 dummy covariates
data(boston) bostint<-fgeninter(boston[,1:13],2,inr=TRUE,idv=4)[[1]]
Run the code above in your browser using DataLab