Dear user, I want to do oaxaca decomposition following https://www.stata-journal.com/articl...article=st0151
However, i have to correct selection in my specification. Therefore, i used following code by going through https://www.stata.com/statalist/arch.../msg00036.html
use oaxaca.dta
reg lnwage educ if female==0
estimates store male
reg lnwage educ if female==1
estimates store female
oaxaca male female
But unfortunately i am getting following error. variable male not found. Can any one help me?
However, i have to correct selection in my specification. Therefore, i used following code by going through https://www.stata.com/statalist/arch.../msg00036.html
use oaxaca.dta
reg lnwage educ if female==0
estimates store male
reg lnwage educ if female==1
estimates store female
oaxaca male female
But unfortunately i am getting following error. variable male not found. Can any one help me?
Comment