Using the example in the manual:
Code:
webuse womenwk
Code:
generate selected = 0 if wage < . generate notselected = 0 if wage >= .
Code:
gsem (wage <- educ age L)(selected <- married children educ age L@1,family(gaussian, udepvar(notselected))), var(L@1 e.wage@a e.selected@a)
Code:
generate minimumwage = (wage>20)
Code:
gsem (wage <- educ age L, probit)(selected <- married children educ age L@1,family(binomial, udepv > ar(notselected))), var(L@1 e.wage@a e.selected@a) option family() invalid; suboptions not allowed with family bernoulli
0 Response to gsem in stata
Post a Comment