Thank you for this. In my reading, the final output of outs$models does not provide any information related to the comparison of the configural and weak model, just the overall fit if items are set free. anova(configural, weak) does, but does not provide any CFI.delta or RMSEA.delta. How is it possible to obtain them?
Unrestraining (i.e., freeing) an item does unfortunately not have an effect on the output of measurementInvariance(): Adding NA* before the items I want to free does seem to have an effect. Here is a short running example
model <- ' visual =~ x1 + x2 + NA*x3;
textual =~ x4 + x5 + x6; speed =~ x7 + x8 + x9 '
measurementInvariance(model,
data=HolzingerSwineford1939,
group='school')Just for clarification, I am hoping to get the same information in the end that measurementInvariance() returns, with one or more items being unrestrained/free:
cfi rmsea cfi.delta rmsea.delta
fit.configural 0.923 0.097 NA NA
fit.loadings 0.921 0.093 0.002 0.004
fit.intercepts 0.882 0.107 0.038 0.015
fit.means 0.840 0.122 0.042 0.015