sim_basicrs | R Documentation |
Quickly sim data for a basic model y~1+x+(1+x|g)
sim_basicrs(
seed = NULL,
b0 = 0,
b1 = 1,
z0 = 1,
z1 = 1,
zz = 0,
e = 1,
eq = TRUE
)
seed |
random seed to use |
b0 |
fixed intercept |
b1 |
fixed slope |
z0 |
random intercept va |
z1 |
random slope var |
zz |
int-slope covar |
e |
residual var |
eq |
equality of x between groups |
sim_basicrs()
library(lme4)
summary(lmer(y~1+x+(1+x|g),data=sim_basicrs()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.