| simrOptions {simr} | R Documentation |
Options Settings for simr
Description
Control the default behaviour of simr analyses.
Usage
simrOptions(...)
getSimrOption(opt)
Arguments
... |
a list of names to get options, or a named list of new values to set options. |
opt |
option name (character string). |
Value
getSimrOption returns the current value for the option x.
simrOptions returns
a named list of all options, if no arguments are given.
a named list of specified options, if a list of option names is given.
(invisibly) a named list of changed options with their previous values, if options are set.
Options in simr
Options that can be set with this method (and their default values).
nsimdefault number of simulations (
1000).alphadefault confidence level (
0.05).progressuse progress bars during calculations (
TRUE).binommethod for calculating confidence intervals (
"exact").pbnsimnumber of simulations for parametric bootstrap tests using
pbkrtest(100).pcminminimum number of levels for the smallest point on a
powerCurve(3).pcmaxmaximum number of points on the default
powerCurve(10).observedPowerWarningwarn if an unmodified fitted model is used (TRUE).
carTestTypetype of test, i.e. type of sum of squares, for tests performed with
car::Anova("II").lmerTestDdfapproximation to use for denominator degrees of freedom for tests performed with
lmerTest("Satterthwaite"). Note that setting this option to"lme4"will reduce thelmerTestmodel to anlme4model and break functionality based onlmerTest.lmerTestTypetype of test, i.e. type of sum of squares, for F-tests performed with
lmerTest::anova.lmerModLmerTest(2). Note that unlike the tests performed withcar::Anova, the test type must be given as a number and not a character.
Examples
getSimrOption("nsim")
oldopts <- simrOptions(nsim=5)
getSimrOption("nsim")
simrOptions(oldopts)
getSimrOption("nsim")