У меня проблемы с получением функции exactRLRT()
в пакете RLRsim
.
library(faraway)
library(RLRsim)
data(eggs)
cmods <- lmer(Fat ~ 1 + (1|Lab:Technician:Sample), data=eggs)
exactRLRT(cmods)
Это приводит к ошибке
Error in exactRLRT(cmods) : Invalid <m> specified.
В справке для RLRsim::exactRLRT
он говорит
The fitted model under the alternative or, for testing in models with multiple variance components, the reduced model containing only the random effect to be tested (see Details), an lme, lmerMod or spm object
Но cmods
был lmerMod
объектом, так почему же это не работает?