heckman两步法的具体步骤我知道,*step 3: do probit regression to get normalpdf(dhat)/normalcdf(dhat), or n1/n2*/
probit d x1 x2 z
predict dhat,xb
gen n1=normalden(dhat)
gen n2=normal(dhat)
gen gamma=n1/n2
/*step 4: put gamma into primary equation, and then do OLS;compare with no correction term*/
reg y x1 x2 gamma
reg y x1 x2
但是现在我需要对收入差距分解,这样具体的怎么做呢?是不是就是在oaxaca命令的时候把gamma加入,作为其中一个自变量呢?其他的都一样?
还有一个问题是分解的结果怎么导出呢?