Likelihood estimate test

Discuss statistics related things

by ktavabi » Mon Jul 20, 2020 11:16 pm

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
ktavabi
 
Posts: 1
Joined: Mon Jul 20, 2020 10:36 pm

by mcfanda@gmail.com » Tue Jul 21, 2020 10:11 am

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)


User avatar
mcfanda@gmail.com
 
Posts: 217
Joined: Thu Mar 23, 2017 9:24 pm


Return to Statistics

cron