model.pickgene {microarray} | R Documentation |
The function created a model matrix of orthogonal contrasts to be used by pickgene.
faclevel |
vector with number of levels for each factor |
facnames |
vector of factor names (default = "a","b",...) |
contrasts |
vector of contrast types |
collapse |
"+" for additive model, "*" for full model with interactions |
renorm |
vector to renormalize contrasts (e.g. use sqrt(2)
to turn two-condition contrast into fold change) |
modelexpr |
model formula |
contrasts.list |
list of contrasts indexed by index{facnames} |
Creates a model matrix data frame with first column having all 1's and other columns having contrasts.
Result of call to model.matrix
Brian Yandell
model.pickgene( c(2,3), c("sex","genotype"))