Page 1 of 1

Likelihood estimate test

Posted: Mon Jul 20, 2020 11:16 pm
by ktavabi
Greetings,
Is it by any means straightforward to use Rj editor to compare likelihoods for two gamlj objects? E.g.

Code: Select all

null<-Y~ 1+x+(1|sid)
m1<-gamlj::gamljMixed(null...)
f<-Y~ 1+x+x1+(1|sid)
m2<-gamlj::gamljMixed(f...)
anova(m1, m2)
Thanks in advance,
Kam

Re: Likelihood estimate test

Posted: Tue Jul 21, 2020 10:11 am
by mcfanda@gmail.com
sure, you can run this

Code: Select all

null<-Y~ 1+x+(1|sid)
m1<-gamlj::gamljMixed(null...)
f<-Y~ 1+x+x1+(1|sid)
m2<-gamlj::gamljMixed(f...)


anova(m1$model, m2$model)