Hi all!
I am running a simple SEM in Lavaan, but am finding different results when I cross-check the model by running it in MPlus. I'm new to Lavaan, so I'm sure there's just something in my syntax I'm missing. The fit statistics are almost identical, but several IVs are significant in my Lavaan output that are not significant when I run in MPlus, which is a bummer. I'm wondering if anybody might be able to point me in the direction of why this discrepancy is there?
LAVAAN
Pain <- '
PAIN =~ X1 + X2 + X3 + X4 + X5 + X6
Y1 ~ PAIN + X7 + X8 + X9
Y2 ~ PAIN + X7 + X8 + X10
PAIN ~~ X7
PAIN ~~ X8 '
pain <- sem(pain, data = DATA, estimator = "WLSMV")
summary(pain, fit.measures=TRUE)
MPLUS
VARIABLE
NAMES ARE X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 Y1 Y2;
USEVARIABLES ARE X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 Y1 Y2;
CATEGORICAL ARE X1 X2 X3;
MISSING ARE (-9999);
ANALYSIS:
ESTIMATOR = WLSMV;
MODEL:
PAIN by X1 X2 X3 X4 X5 X6;
Y1 on PAIN X7 X8 X9;
Y2 on PAIN X7 X8 X10 ;
PAIN with X7
PAIN with X8
OUTPUT: Standardized Modindices;