Dear all
I am using multi-level gsem to compare the effect of X on Y1, Y2, Y3, and Y4 which are different (dichotomous) dependent variables. The data consist of 50.000 individuals nested in 200 localities, and I need to adjust for 40 fixed effects.
First, I run comparisons between Y1 and Y2, Y1 and Y3 etc. Second, I seek to test for overall differences in the effect of X across all dependent variables. For the second step, I am using the following code:
While the first step works out fine, the second step of comparing all coefficients at once never convergences.
What can I do to also run this test?
Thank you very much in advance!
Best
I am using multi-level gsem to compare the effect of X on Y1, Y2, Y3, and Y4 which are different (dichotomous) dependent variables. The data consist of 50.000 individuals nested in 200 localities, and I need to adjust for 40 fixed effects.
First, I run comparisons between Y1 and Y2, Y1 and Y3 etc. Second, I seek to test for overall differences in the effect of X across all dependent variables. For the second step, I am using the following code:
Code:
gsem (Y1 <- $controls X L1[LocalityID] ) /// (Y2 <- $controls X L2[LocalityID]) /// (Y3 <- $controls X L3[LocalityID]) /// (Y4 <- $controls X L4[LocalityID]) /// , latent(L1 L2 L3 L4) family(binomial) link(logit) nocapslatent gsem, coeflegend test _b[Y1:X]= _b[Y2:X] = _b[Y3:X] = _b[Y4:X]
What can I do to also run this test?
Thank you very much in advance!
Best
Comment