compareFit and categorical models

360 views
Skip to first unread message

Galla Placidia

unread,
Jul 4, 2013, 3:18:40 PM7/4/13
to lav...@googlegroups.com
I have two nested models with categorical measures. I fit them using WLSMV, for polychoric correlations. Can I use compareFit from the semTools package to compare the fits? And if not, how can I compare the models.

Thanks.

Alex Schoemann

unread,
Jul 8, 2013, 12:15:01 PM7/8/13
to lav...@googlegroups.com
Yes, this should work. One important note, the compareFit function isn't doing anything magical. It is simply gathering up fit indices from several models and putting them in the same place. You could do the same thing with a piece of paper if you wanted (and the anova command to compare nested models). One other caveat, it looks like the compareFit function grabs the DWLS fit indices, not the robust fit indices when using WLSMV.

Alex

Galla Placidia

unread,
Jul 10, 2013, 2:07:45 PM7/10/13
to lav...@googlegroups.com
Thanks.

OK --- so what are the pros and cons of using DWLS vs the robust fit?

And does the anova method work for categorical data? I seem to recall reading somewhere that the ML tests, and those based on the ML, do not apply in that situation.

Alex Schoemann

unread,
Jul 11, 2013, 11:22:21 AM7/11/13
to lav...@googlegroups.com
I don't feel qualified to address your first question. As for the second. The anova method does work with categorical data. When comparing models estimated with WLSMV, the chi square difference test is not simply the difference between the two observed chi square statistics, but it is calculable. For details see: http://www.statmodel.com/download/webnotes/webnote10.pdf

Alex

yrosseel

unread,
Jul 11, 2013, 2:59:04 PM7/11/13
to lav...@googlegroups.com

> OK --- so what are the pros and cons of using DWLS vs the robust fit?

Estimates are identical. Inference is superior when using the robust
standard errors and the robust (scaled) test statistic.

Reference:

Beauducel, A., & Herzberg, P. Y. (2006). On the performance of maximum
likelihood versus means and variance adjusted weighted least squares
estimation in CFA. Structural Equation Modeling, 13(2), 186-203.


Yves.

f1r3t...@gmail.com

unread,
Apr 10, 2014, 5:15:14 AM4/10/14
to lav...@googlegroups.com
In terms of other fit indices (CFI, RMSEA) would the robust values also be preferable to the DWLS values in this context?
 
Thanks
 
Peter

 

yrosseel

unread,
Apr 14, 2014, 11:10:33 AM4/14/14
to lav...@googlegroups.com
On 04/10/2014 11:15 AM, f1r3t...@gmail.com wrote:
> In terms of other fit indices (CFI, RMSEA) would the robust values also
> be preferable to the DWLS values in this context?

There is in fact little literature on this (AFAIK). But I would be
inclined to say "yes".

Yves.

f1r3t...@gmail.com

unread,
Apr 16, 2014, 8:50:23 AM4/16/14
to lav...@googlegroups.com
Thanks for your help
Reply all
Reply to author
Forward
0 new messages