Learn R Programming

skewlmm (version 1.1.3)

lr.test: Likelihood-ratio test for SMSN/SMN objects

Description

It performs a likelihood-ratio test for two nested SMSN-LMM or SMN-LMM.

Usage

lr.test(obj1, obj2, level = 0.05)

Value

statistic

The test statistic value.

p.value

The p-value from the test.

df

The degrees of freedom used on the test.

Arguments

obj1, obj2

smsn.lmm or smn.lmm objects containing the fitted models to be tested.

level

The significance level that should be used. If quiet = TRUE, this is ignored.

Author

Fernanda L. Schumacher, Larissa A. Matos and Victor H. Lachos

References

Schumacher, F. L., Matos, L. A., and Lachos, V. H. (2025). "skewlmm: An R Package for Fitting Skewed and Heavy-Tailed Linear Mixed Models." Journal of Statistical Software, 115(7), 1--32.

Schumacher, F. L., Lachos, V. H., and Matos, L. A. (2021). Scale mixture of skew-normal linear mixed models with within-subject serial dependence. Statistics in Medicine 40(7), 1790-1810.

See Also

smsn.lmm, smn.lmm

Examples

Run this code
fm1 = smn.lmm(nlme::Orthodont, formFixed=distance ~ age+Sex, groupVar="Subject")
fm2 = smsn.lmm(nlme::Orthodont, formFixed=distance ~ age+Sex, groupVar="Subject",
               control=lmmControl(tol=.0001))
lr.test(fm1, fm2)

Run the code above in your browser using DataLab