simulate.g_REML | R Documentation |
g_REML
objectSimulates data from the linear mixed effects model used to estimate the specified standardized mean difference effect size. Suitable for parametric bootstrapping.
## S3 method for class 'g_REML'
simulate(object, nsim = 1, seed = NULL, parallel = FALSE, ...)
object |
a |
nsim |
number of models to simulate |
seed |
seed value. See documentation for |
parallel |
if |
... |
additional optional arguments |
A matrix with one row per simulation, with columns corresponding to the output
of g_REML
.
data(Laski)
Laski_RML <- lme(fixed = outcome ~ treatment,
random = ~ 1 | case,
correlation = corAR1(0, ~ time | case),
data = Laski)
suppressWarnings(
Laski_g <- g_REML(Laski_RML, p_const = c(0,1), r_const = c(1,0,1))
)
if (requireNamespace("plyr", quietly = TRUE)) {
simulate(Laski_g, nsim = 5)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.