I want to test if the model is the same across gender (constrained model). I was suggested to test the difference in chi-square between the general model and the constrained model. But I am still wondering whether I should test the model of configural using measurement invariance analysis, in which the group is "Gender".
Error in if (cd < 0) { : missing value where TRUE/FALSE needed
But when I used the command to test configural model, the warning message disappeared.
I want to test if the model is the same across gender (constrained model). I was suggested to test the difference in chi-square between the general model and the constrained model. But I am still wondering whether I should test the model of configural using measurement invariance analysis, in which the group is "Gender".The test of model fit is not specifically a test of whether that model fits equally across groups. See this article about using a permutation test of configural invariance:
The permutation test is automated for lavaan models in the semTools package. See the ?permuteMeasEq help page.Error in if (cd < 0) { : missing value where TRUE/FALSE neededThis looks like the scaling factor might be missing. When you fit the model yourself (without the measurementInvariance() function), did you notice missing values in the Robust column of the summary() output?
But when I used the command to test configural model, the warning message disappeared.When you used which command? Just the cfa() function?If the scaling factor cannot be computed for some reason, then you won't be able to calculate robust test statistics to compare models. But permutation tests could be a solution, because they do not require the robust test statistic to have nominal Type I error rates:
Can you please suggest me the function which can be used to test the significant in chi-square?
My question is: when I use permuteMeasEq to evaluate the difference in chi-square statistics in MGCFA, which version of the difference in chi-square statistics should I target?
I am not sure if permutation tests of "chisq" or "chisq.scaled" is a reasonable method to evaluate measurement invariance as that for AFIs (e.g. robust CFI, robust RMSEA)?The R codes in the supplementary materials provided by Terrence ( http://dx.doi.org/10.1037/met0000152.supp ) use both "chisq" and "chisq.scaled" as targets of permutation tests.Since I did not have the full-text of that paper, I have no idea how this issue was dealt with by the authors.
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.