Dear All,
I am currently addressing sample selection bias in my panel data and am attempting to incorporate Mills' ratio. However, I'm encountering difficulties with Stata commands.
Initially, I estimated the probability of observation selection using the xtprobit command, including one exogenous variable. Then, I used the
command and subsequently generated Mills' ratio with the
command. Finally, I ran the xtreg command, incorporating the Mills' ratio but omitting the exogenous variable.
I would greatly appreciate advice on whether the set of independent variables used in the xtprobit command for estimating the probability of observation selection should be identical to the set used in the final xtreg command. While I understand the necessity of including one exogenous variable in the first stage of the xtprobit regression, I'm uncertain if other variables in these two regressions should be exactly the same. Additionally, if you notice any issues with the approach I'm pursuing, or you have any other additional advice (any recourse that discussed a very similar case on addressing sample selection bias with panel data using Stata), I would be immensly grateful.
Thank you very much in advance!
Best,
Nick
I am currently addressing sample selection bias in my panel data and am attempting to incorporate Mills' ratio. However, I'm encountering difficulties with Stata commands.
Initially, I estimated the probability of observation selection using the xtprobit command, including one exogenous variable. Then, I used the
Code:
predict phat,xb
Code:
gen mills = exp(-0.5 * phat^2) / (sqrt(2 * _pi) * normalden(phat))
I would greatly appreciate advice on whether the set of independent variables used in the xtprobit command for estimating the probability of observation selection should be identical to the set used in the final xtreg command. While I understand the necessity of including one exogenous variable in the first stage of the xtprobit regression, I'm uncertain if other variables in these two regressions should be exactly the same. Additionally, if you notice any issues with the approach I'm pursuing, or you have any other additional advice (any recourse that discussed a very similar case on addressing sample selection bias with panel data using Stata), I would be immensly grateful.
Thank you very much in advance!
Best,
Nick
Comment