buildModelMatrix | R Documentation |
a function to create a model matrix with all predictor terms in both the group level and fixed effect level
buildModelMatrix(model, newdata, which = "full")
model |
a merMod object from lme4 |
newdata |
a data frame to construct the matrix from |
which |
a character which matrix to return,default is full matrix with fixed and random terms, other options are "fixed" and "random" |
Taken from predict.merMod in lme4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.