Dear all, I am incurring in a strange (to me) problem when trying to apply the Heckman model to my data. In particular, I have a dependent variable (job satisfaction) which is observed only among those are employed (occupati), otherwise it has missing value. Since I want to compare women's and men's job satisfaction, I would like to correct for their different likelihood of being in employment, using as instrumental variable the marital status (married vs. not married).
when running
Stata gives me the message that Dependent variable never censored because of selection, but why? Did I made some mistake in preparing the dataset?
Following my data:
I am really in troubles!! Thanks a lot in advance for your help.
Best, G.P.
when running
Code:
heckman job_sat i.job_1dgt, select(occupato=i.married i.job_1dgt )
Following my data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(job_1dgt job_sat) float(occupato married) . . 0 0 . . 0 0 3 2 1 0 2 10 1 1 6 9 1 0 8 6 1 1 5 10 1 0 3 8 1 0 5 6 1 0 5 10 1 0 7 9 1 1 4 9 1 0 . . 0 0 5 10 1 0 2 10 1 0 6 6 1 0 8 7 1 0 . . 0 0 . . 0 1 4 8 1 0 end label values job_1dgt prof1 label def prof1 2 "professioni intellettuali, scientifiche e di elevata special", modify label def prof1 3 "professioni tecniche", modify label def prof1 4 "professioni esecutive nel lavoro d'ufficio", modify label def prof1 5 "professioni qualificate nelle attività commerciali e nei se", modify label def prof1 6 "artigiani, operai specializzati e agricoltori", modify label def prof1 7 "conduttori di impianti, operai di macchinari fissi e mobili", modify label def prof1 8 "professioni non qualificate", modify label values job_sat c73 label def c73 10 "completamente soddisfatto", modify
I am really in troubles!! Thanks a lot in advance for your help.
Best, G.P.
Comment