Skip to contents

Set controls to steer calculations

Usage

set_control(
  method = c("kr", "lmer"),
  kr = control_kr(...),
  lmer = lmerControl(check.nobs.vs.nRE = "warning"),
  ...
)

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()

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.

Examples

# defaults
control <- set_control()
control
#> $niter
#> [1] 200
#> 
#> $nimp
#> [1] 0
#> 
#> $start
#> [1] 101
#> 
#> $end
#> [1] 301
#> 
#> $thin
#> [1] 1
#> 
#> $thin_imp
#> [1] Inf
#> 
#> $seed
#> [1] NA
#> 
#> $cormodel
#> [1] "none"
#>