Actually create a model matrix from a merMod object and new data (only fixed effects, and leaves out the y value).
1 | mer_model_matrix(fit, dat, ...)
|
fit |
Fitted merModel object |
dat |
New data to generate a model.matrix from. See model.matrix. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.