mkSimulateTemplate | R Documentation |
Make data and parameter templates suitable for guiding mixed model simulations, by specifying a model formula and other information (EXPERIMENTAL). Most useful for simulating balanced designs and for getting started on unbalanced simulations.
mkParsTemplate(formula, data)
mkDataTemplate(formula, data, nGrps = 2, nPerGrp = 1, rfunc = NULL, ...)
formula |
A mixed model formula (see |
data |
A data frame containing the names in |
nGrps |
Number of levels of a grouping factor. |
nPerGrp |
Number of observations per level. |
rfunc |
Function for generating covariate data (e.g. |
... |
Additional parameters for |
These functions are designed to be used with simulate.merMod
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.