powered by
When using groupfs with factor variables call this function first to create a design matrix.
groupfs
factorDesign(df)
Data frame containing some columns which are factors.
factors
List containing
Design matrix, the first columns contain any numeric variables from the original date frame.
Group membership indicator for expanded matrix.
# NOT RUN { fd = factorDesign(warpbreaks) y = rnorm(nrow(fd$x)) fit = groupfs(fd$x, y, fd$index, maxsteps=2, intercept=F) pvals = groupfsInf(fit) # }
Run the code above in your browser using DataLab