Hi everyone!
I have done a LCA with 7 variables and 5 classes.
As my survey data consists of several countries, I would now like to see whether the coefficients vary over these different countries. However, I keep receiving an error message stating that there are no observations.
Could you explain to me what I did wrong, and how I could solve this problem? If I use the same code for gender instead of country everything works smoothly and I receive the latent classes per gender; no error message appears.
I have no missing values in my country-variable.
Thank you very much for every piece of advice!
I have done a LCA with 7 variables and 5 classes.
Code:
gsem (a1107_e a1113_b a1113_e a1113_f a1113_g_new a1113_h a1114_a <-), ologit lclass(C 5)
Code:
gsem (a1107_e a1113_b a1113_e a1113_f a1113_g_new a1113_h a1114_a <-), ologit lclass(C 5) group(acountry) ginvariant(coef) no observations r(2000);
I have no missing values in my country-variable.
Thank you very much for every piece of advice!

Comment