Hi
I am trying to build a semi-constrained model holding item-response probabilities but allowing class proportions vary between groups in a multi-group latent class analysis. How can I use the -group- option to do this?
Also, the discussion in this post is helpful https://www.statalist.org/forums/for...ass-regression, I followed the code posted for measurement invariance test
The first test worked well but from the second one testing the mean of each item, it showed "equation a1 not found r(111)". I cannot find the problem here. a1-a8 are 3-class ordinal variables (range:1-3).
Thank you!
I am trying to build a semi-constrained model holding item-response probabilities but allowing class proportions vary between groups in a multi-group latent class analysis. How can I use the -group- option to do this?
Also, the discussion in this post is helpful https://www.statalist.org/forums/for...ass-regression, I followed the code posted for measurement invariance test
Code:
gsem (a1 a2 a3 a4 a5 s6 a7 a8 <-), mlogit lclass(C 3) estat lcmean estat lcprob estimates store c31 gsem (a1 a2 a3 a4 a5 s6 a7 a8 <-), mlogit lclass(C 3) group(male) byparm ginvariant(coef loading) estat lcmean estat lcprob estimates store c32 estimates stats c21 c32 test _b[3.C:1.male] = _b[3.C:2.male] test _b[a1:1.male#3.C] = _b[a1:2.male#3.C] test _b[a2:1.male#3.C] = _b[a2:2.male#3.C]
Thank you!

Comment