I am running a 3 factor solution with categorical and pairwise
complete observations using the lavaan package and Mplus. I get equal
results in the matrix correlation, factor loadings, factor correlation,
residual matrix, and so on, in both programs, except for Chi squared and
modification indices.
I was wondering if
there is a different default calculation of Chi Square in lavaan (X^2
=2337.638) in comparison to Mplus (X^2 = 2341.213). The differences in
modification indices is greater and it could be because of this little
difference in Chi square.
I checked
documentation of fitMeasures function, but it does not specify which
other alternatives there are for standard.test and scaled.test arguments
besides the "default" option.
My model in R.
model1 <- cfa(syntax,
data = db2,
ordered = c("ics1_1","ics1_2","ics1_3","ics1_4","ics1_5",
"ics2_1","ics2_2","ics2_3","ics2_4_r","ics2_5",
"ics2_6_r","ics2_7_r","ics2_8","ics2_9","ics2_10_r",
"ics3_1","ics3_2","ics3_3","ics3_4_r","ics3_5",
"ics3_6_r","ics3_7_r","ics3_8","ics3_9","ics3_10_r"),
estimator = "WLSMV", missing = "pairwise")
measures_model1 <- fitMeasures(model1,
fit.measures = c("chisq.scaled", "df.scaled",
"rmsea.scaled","rmsea.ci.lower.scaled",
"rmsea.ci.upper.scaled","rmsea.pvalue.scaled",
"cfi.scaled","tli.scaled"))
My model in Mplus (for extension I omitted some arguments like NAMES ARE, USE VARIABLES, MISSING ARE, etc, but fell free to ask if help to answer):
CATEGORICAL ARE
ics1_1 ics1_2 ics1_3 ics1_4 ics1_5
ics2_1 ics2_2 ics2_3 ics2_4_r ics2_5 ics2_6_r ics2_7_r ics2_8 ics2_9 ics2_10_r
ics3_1 ics3_2 ics3_3 ics3_4_r ics3_5 ics3_6_r ics3_7_r ics3_8 ics3_9 ics3_10_r;
ANALYSIS:
STARTS=20;
MODEL:
ICS1 BY ics1_1 ics1_2 ics1_3 ics1_4 ics1_5;
ICS2 BY ics2_1 ics2_2 ics2_3 ics2_4_r ics2_5 ics2_6_r ics2_7_r ics2_8 ics2_9 ics2_10_r;
ICS3 BY ics3_1 ics3_2 ics3_3 ics3_4_r ics3_5 ics3_6_r ics3_7_r ics3_8 ics3_9 ics3_10_r;
OUTPUT: TECH1
residual
cinterval
sampstat
modindices (ALL)
standardized;