Hi Ed,
@bgoodri and I are working on a project together where we wish to build a Bayesian CFA model for a few measures with items on an ordinal scale (e.g., 1-4 Likert scale). We have a few questions:
- I am a bit puzzled by the fact that the model fit of the Bayesian CFA (given by
blavFitIndices()) is very different from that of the Frequentist CFA (given by lavaan::cfa()). I understand that the Frequentist model may be overfitting the data by giving CFI = 0.99 and RMSEA = 0.04. But the Bayesian model fit is very different. I checked the predicted ordinal values from the model and they seem to correspond well with the raw distribution of the items. Could it be because these Bayesian fit indices do not work too well with ordinal data?
Posterior mean (EAP) of devm-based fit indices:
BRMSEA BGammaHat adjBGammaHat BMc
0.637 0.246 -0.497 0.000
- When I tried to use
ppmc() on my fitted Bayesian CFA model, I got this error. Is this because ppmc() does not work too well with ordinal data? Would adding mcmcextra = list(data = list(emiter = 50)) in bcfa() help? I am using blavaan_0.3-18.853.
Error in "mcmcdata" %in% names(lavobject@external) :
trying to get slot "external" from an object of a basic class ("NULL") with no slots
- The
MargLogLik is still NA after adding mcmcextra = list(data = list(llnsamp = 200)). Is there another way to compute the likelihood?
Thanks!
Hi Ed,
@bgoodri and I are working on a project together where we wish to build a Bayesian CFA model for a few measures with items on an ordinal scale (e.g., 1-4 Likert scale). We have a few questions:
blavFitIndices()) is very different from that of the Frequentist CFA (given bylavaan::cfa()). I understand that the Frequentist model may be overfitting the data by giving CFI = 0.99 and RMSEA = 0.04. But the Bayesian model fit is very different. I checked the predicted ordinal values from the model and they seem to correspond well with the raw distribution of the items. Could it be because these Bayesian fit indices do not work too well with ordinal data?ppmc()on my fitted Bayesian CFA model, I got this error. Is this because ppmc() does not work too well with ordinal data? Would addingmcmcextra = list(data = list(emiter = 50))inbcfa()help? I am usingblavaan_0.3-18.853.MargLogLikis still NA after addingmcmcextra = list(data = list(llnsamp = 200)). Is there another way to compute the likelihood?Thanks!