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

View source: R/mainfunctions.R

lr.testR Documentation

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)

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.

Value

statistic

The test statistic value.

p.value

The p-value from the test.

df

The degrees of freedom used on the test.

Author(s)

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

References

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

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)

skewlmm documentation built on July 9, 2023, 7:29 p.m.