mult.memb | R Documentation |
Forms design matrices for multiple membership models
mult.memb(formula)
formula |
formula |
Currently mult.memb
can only usefully be used inside an idv
variance function. The formula usually contains serveral factors that have the same factor levels.
design matrix
Jarrod Hadfield j.hadfield@ed.ac.uk
fac1<-factor(sample(letters[1:3], 5, TRUE), levels=letters[1:3])
fac2<-factor(sample(letters[1:3], 5, TRUE), levels=letters[1:3])
cbind(fac1, fac2)
mult.memb(~fac1+fac2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.