Description Usage Arguments Details Examples
Simulate response patterns for generalized linear models of gaussian
or
binomial
families, with both an intercept and slope covariate. Used
primarily for testing purposes.
1 2 |
n |
an integer scalar, the number of observations at the lowest grouping level. |
m_per_level |
an integer vector, the number of grouping levels nested under the level above. |
sd_intercept |
a numeric vector, the standard deviations of the intercept random effects. |
sd_slope |
a numeric vector, the standard deviations of the slope random effects. |
family |
a character scalar, either |
seed |
a single value, interpreted as an integer, or |
returns a data.frame with design matrix, response, and group levels.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.