powerSim | R Documentation |
Perform a power analysis for a mixed model.
powerSim(
fit,
test = fixed(getDefaultXname(fit)),
sim = fit,
fitOpts = list(),
testOpts = list(),
simOpts = list(),
seed,
...
)
fit |
a fitted model object (see |
test |
specify the test to perform. By default, the first fixed effect in |
sim |
an object to simulate from. By default this is the same as |
fitOpts |
extra arguments for |
testOpts |
extra arguments for |
simOpts |
extra arguments for |
seed |
specify a random number generator seed, for reproducible results. |
... |
any additional arguments are passed on to
|
print.powerSim
, summary.powerSim
, confint.powerSim
fm1 <- lmer(y ~ x + (1|g), data=simdata)
powerSim(fm1, nsim=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.