design.matrix {agce}R Documentation

Create the design matrix associated to the data.

Usage

design.matrix(factors)

Arguments

factors The vector (first column of the data) of group ids.

Value

The design matrix X.

Author(s)

Raphael Gottardo

Examples

data(Bt20)
### Remove the missing values (if any)
Bt20<-remove.NA(Bt20)
X<-design.matrix(Bt20[,1])

[Package agce version 1.2 Index]