set_control: Set controls to steer calculations
Description
Set controls to steer calculations
Usage
set_control(
method = c("kr", "lmer"),
kr = control_kr(...),
lmer = lmerControl(check.nobs.vs.nRE = "warning"),
...
)
Value
For method "kr"
, a list returned by control_kr()
.
For method "lmer"
, an object of class lmerControl
.
For other methods, set_control()
returns NULL
.
Arguments
- method
String indicating estimation method: "kr"
or "lmer"
- kr
A list generated by control_kr.
- lmer
A list generated by lme4::lmerControl. The default
is set to lmerControl(check.nobs.vs.nRE = "warning")
, which turns
fatal errors with respect the number of parameters into warnings. Use
lmerControl(check.nobs.vs.nRE = "ignore")
to silence lmer()
.
- ...
Forwards arguments to control_kr()
Examples
Run this code# defaults
control <- set_control()
control
Run the code above in your browser using DataLab