On 03/11/2013 11:00 PM,
sebasti...@gmail.com wrote:
> Thanks Yves. I just wanted to be sure that I was doing the right thing.
> I read that:
>
> The difference in chi-squared values for nested models estimated with
> WLSMV is not distributed as chi-squared.
True, but lavaan uses a 'scaled' difference test, using the (correct)
formulas from Satorra (2000). (reference below).
> In his syntax examples of the book "Confirmatory Factor Analysis for
> Applied Research", Jan Lammertyn pointed out that the difference test
> was not yet implemented in lavaan for categorical variables.
It is now. Note that the results reported in Brown are based on an older
version of Mplus. To get identical results for the two model fits, you
can use estimator="WLSMVS" (with S for Satterthwaite) and mimic="Mplus".
The latter will round-off the fractional degrees of freedom to integers.
> In the book, using Mplus, it is reported:
>
> Chi-Square Test for Difference Testing Value 27.958 Degrees of Freedom
> 4** P-Value 0.0000
Well, if estimator="WLSMVS" and mimic="Mplus" is used, anova(fit1 ,fit2)
gives
> anova(fit1, fit2)
Scaled Chi Square Difference Test (test = mean.var.adjusted)
Df AIC BIC Chisq Chisq diff Df diff Pr(>Chisq)
fit1 9 5.6512
fit2 13 42.1617 26.199 3.7111 2.077e-05 ***
Still not the 27.958 repored by Mplus, and note the fractional degrees
of freedom. lavaan is using Satorra (2000). Mplus is using a slightly
different approach (described in webnote 10 on the Mplus website).
AFAIK, both approaches are correct (and one day, I will add a
mimic="Mplus" to the anova() function too to get the exact Mplus result).
Yves.
Satorra, A. (2000). Scaled and adjusted restricted tests in multi-sample
analysis of moment structures. In Innovations in Multivariate
Statistical Analysis: A Festschrift for Heinz Neudecker. Heijmans,
D.D.H., Pollock, D.S.G. and Satorra, A. (edts.), pp. 233-247, Kluwer
Academic Publishers, Dordrecht.
http://www.econ.upf.edu/docs/papers/downloads/395.pdf