Hi, by referring to the following website, https://stats.idre.ucla.edu/stata/co...s-using-suest/
I try to test coefficients across equations for logit models, but it did not work.
This is my code
STATA returns the following problem, which says the variable "gender2cat" is not found. But I do have this variable in my data.
Here is my data from dataex, I would appreciate if you can help me. Thanks!
Dataset pruned by user request
I try to test coefficients across equations for logit models, but it did not work.
This is my code
Code:
logit educ2 i.gender2cat i.hukounew c.feducon c.fisei if cohort==1 est store c1 logit educ2 i.gender2cat i.hukounew c.feducon c.fisei if cohort==2 est store c2 logit educ2 i.gender2cat i.hukounew c.feducon c.fisei if cohort==3 est store c3 logit educ2 i.gender2cat i.hukounew c.feducon c.fisei if cohort==4 est store c4 suest c1 c2 c3 c4 test [c1_educ2]gender2cat = [c2_educ2]gender2cat
Code:
test [c1_educ2]gender2cat = [c2_mean]gender2cat
[gender2cat] not found
r(111);
Dataset pruned by user request
Comment