simrControl the default behaviour of simr analyses.
simrOptions(...)getSimrOption(opt)
a list of names to get options, or a named list of new values to set options.
option name (character string).
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 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 the
lmerTest model to an lme4 model and
break functionality based on lmerTest.
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
with car::Anova, the test type must be
given as a number and not a character.
# NOT RUN {
getSimrOption("nsim")
oldopts <- simrOptions(nsim=5)
getSimrOption("nsim")
simrOptions(oldopts)
getSimrOption("nsim")
# }
Run the code above in your browser using DataLab