factorDesign: Expand a data frame with factors to form a design matrix with...

Description Usage Arguments Value Examples

View source: R/funs.groupfs.R

Description

When using groupfs with factor variables call this function first to create a design matrix.

Usage

1

Arguments

df

Data frame containing some columns which are factors.

Value

List containing

x

Design matrix, the first columns contain any numeric variables from the original date frame.

index

Group membership indicator for expanded matrix.

Examples

1
2
3
4
5
6
7
## Not run: 
fd = factorDesign(warpbreaks)
y = rnorm(nrow(fd$x))
fit = groupfs(fd$x, y, fd$index, maxsteps=2, intercept=F)
pvals = groupfsInf(fit)

## End(Not run)

selectiveInference documentation built on Sept. 7, 2019, 9:02 a.m.