saving casewise likelihoods

Skip to first unread message

Symen Brouwers

Sep 4, 2018, 6:54:17 AM9/4/18
to lavaan
I hope you are all well.

I conducted nonnested model comparison in r using the lavaan and nonnest2 packages; it has helped my distinguish two different factor models of a 6 item scale, across 2400 study participants. I am interested to examine individual differences more and for situations in which we wish the compare multiple models, the Merkle, You, & Preacher (2016) paper mentions the option of obtaining casewise likelihoods. I found the Katayama (2008) paper that Merkle et al. refer to, but I am not sure how to obtain these casewise likelihoods; the Merkle paper does not describe a method here. 

How would I obtain and save casewise likelihoods for my two models, that I could, which example, use in an ANOVA? I would really appreciate your help!

Kind regards,

Mauricio Garnier-Villarreal

Sep 4, 2018, 1:49:57 PM9/4/18
to lavaan
you can use the function from the nonnest2 package, llcont

HS.model <- 'visual  =~ x1 + x2 + x3
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9 '
fit1 <- cfa(HS.model, data=HolzingerSwineford1939)
Reply all
Reply to author
0 new messages