View source: R/multilevel_data_sim.R
sim_multilevel_bivariatenormal_randinterceptandslope | R Documentation |
simulate multilevel bivariate normal dist with a random intercept AND SLOPE
sim_multilevel_bivariatenormal_randinterceptandslope(
nsubject,
nvisits,
interceptcor,
slopecor,
slopeintcorbetween,
slopeintcorwithin,
ICCs
)
nsubject |
how many subjects |
nvisits |
how many visits each |
interceptcor |
intercept correlation |
slopecor |
slope correlation |
slopeintcorbetween |
slope between subject correlation |
slopeintcorwithin |
slope within subject correlation |
ICCs |
inter class correlation |
sim_multilevel_bivariatenormal_randinterceptandslope(100,2,.1,.5,.6,.3,.4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.