Hi Statalist,
I have been trying to do a measurement invariance via Stata, i.e. validate a measurement tool among 2 populations (female and male) following the 3 steps:
Step 1:
Model that frees all parameters: (here I set the mean of the latent variables to 0 and variance to 1, thus to identify their scale and location)
Step 2:
Then I checked if factor loadings are equal across groups:
Step 3:
Then I came to the conclusion that factor loadings are the same, so I tried to compare the group means.
In order to do that, I wanted to set mean to 0 and variance to 1 for just group=1, but free estimates for group=2;
so that I could see if the test for the mean of group=2 is significantly different than 0 (mean of group=1).
However, step 3 codes did not work. Stata keeps iterating and not concaving until I broke the iteration.
Before this post, I already tried many other different Stata tutorials using the same method, but all just failed in the last step wherein I want to know if the means of my latent variables are different across groups. And if latent means are different, then which one is higher among which groups. I also referred to the Stata "help" document, and I think I am following the same commands. I am confused that I don't know why Stata is not cancaving...
Thanks for any help/thought in advance! Much appreciated!
Yingyi
I have been trying to do a measurement invariance via Stata, i.e. validate a measurement tool among 2 populations (female and male) following the 3 steps:
Step 1:
Model that frees all parameters: (here I set the mean of the latent variables to 0 and variance to 1, thus to identify their scale and location)
Code:
sem (Latent1 -> item1 item2 item3 ) (Latent2 -> item4 item5 item6), /// variance (Latent1@1 Laten2@1) mean(Latent1@0 Latent2@0) ginvariant(none) group(gender)
Step 2:
Then I checked if factor loadings are equal across groups:
Code:
sem (Latent1 -> item1 item2 item3 ) (Latent2 -> item4 item5 item6), /// variance (Latent1@1 Laten2@1) mean(Latent1@0 Latent2@0) ginvariant(mcoef) group(gender)
Step 3:
Then I came to the conclusion that factor loadings are the same, so I tried to compare the group means.
In order to do that, I wanted to set mean to 0 and variance to 1 for just group=1, but free estimates for group=2;
so that I could see if the test for the mean of group=2 is significantly different than 0 (mean of group=1).
Code:
sem (Latent1 -> item1 item2 item3 ) (Latent2 -> item4 item5 item6), /// variance (1: Latent1@1) variance(1: Laten2@1) mean(1: Latent1@0) mean(1: Latent2@0) ginvariant(mcoef) group(gender)
Before this post, I already tried many other different Stata tutorials using the same method, but all just failed in the last step wherein I want to know if the means of my latent variables are different across groups. And if latent means are different, then which one is higher among which groups. I also referred to the Stata "help" document, and I think I am following the same commands. I am confused that I don't know why Stata is not cancaving...
Thanks for any help/thought in advance! Much appreciated!

Yingyi
Comment