Description Usage Arguments Details Value Author(s) See Also Examples
The function created a model matrix of orthogonal contrasts to be used by pickgene.
1 2 3 4 5 |
faclevel |
vector with number of levels for each factor |
facnames |
vector of factor names (default = "a", "b", ...) |
contrasts.fac |
vector of contrast types |
collapse |
"+" for additive model, "*" for full model with interactions |
show |
vector of contrast numbers to show (default is all) |
renorm |
vector to renormalize contrasts (e.g., use |
modelexpr |
model formula |
contrasts.list |
list of contrasts indexed by |
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
1 | model.pickgene(c(2,3), c("sex","genotype"))
|
Attaching package: 'pickgene'
The following object is masked from 'package:stats':
nlminb
(Intercept) sex.L genotype.L genotype.Q
1 1 -0.7071068 -7.071068e-01 0.4082483
2 1 -0.7071068 -7.850462e-17 -0.8164966
3 1 -0.7071068 7.071068e-01 0.4082483
4 1 0.7071068 -7.071068e-01 0.4082483
5 1 0.7071068 -7.850462e-17 -0.8164966
6 1 0.7071068 7.071068e-01 0.4082483
attr(,"assign")
[1] 0 1 2 2
attr(,"contrasts")
attr(,"contrasts")$sex
[1] "contr.poly"
attr(,"contrasts")$genotype
[1] "contr.poly"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.