compare() is the namespace-qualified model-comparison front door. For LMMs
it reports likelihood, information criteria, and asymptotic likelihood-ratio
comparisons. REML fits are refit by ML when refit_for_comparison = "auto"
or "ml"; "error" refuses that comparison.
Arguments
- object
A fitted
mm_lmm.- ...
Additional fitted
mm_lmmobjects.- target
Comparison target label.
- method
"auto"/"lrt"for asymptotic likelihood-ratio rows,"aic"for information criteria only, or"bootstrap"for a small parametric-bootstrap LRT whennsim > 0.- refit_for_comparison
How to handle REML fits.
- nsim
Number of bootstrap simulations for
method = "bootstrap".- seed
Optional bootstrap seed.