View source: R/mainfunctions.R
lr.test | R Documentation |
It performs a likelihood-ratio test for two nested SMSN-LMM or SMN-LMM.
lr.test(obj1, obj2, level = 0.05)
obj1, obj2 |
smsn.lmm or smn.lmm objects containing the fitted models to be tested. |
level |
The significance level that should be used. If |
statistic |
The test statistic value. |
p.value |
The p-value from the test. |
df |
The degrees of freedom used on the test. |
Fernanda L. Schumacher, Larissa A. Matos and Victor H. Lachos
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.
smsn.lmm
, smn.lmm
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.