gausscov (version 0.1.8)

decomp: Decomposes given coded interactions into their component parts

Description

decomposes a given interaction ic into its component parts

Usage

decomp(ic, k, ord, inc=0)

Value

decom The component parts of the interaction.

Arguments

ic

The numbers of the coded interactions

k

The number of covariates of x without intercept, number plus 1 if inr=T

ord

The order of the interactions

inc

The indices of the interaction covariates with no dummy covariates when all powers are calculated including dummy covariates. This is returned by fgeninter.R

Examples

Run this code
 bosint<-fgeninter(boston[,1:13],3,4)
a<-decomp(100,14,3,inc=bosint[[2]])

Run the code above in your browser using DataLab