Jeff Wooldridge I would be curious about the solution when the EEV is binary. Can we still use the control function approach? Is it possible to use xtlogit in the first stage and then predict the residuals with the "score" option to obtain the generalized residuals? something like:
xtlogit y2 z1 ... zJ zJp1 ... zM i.year, fe
predict double v2h_fe, score
xtpoisson y1 y2 v2h_fe z1 ... zJ i.year, fe vce(robust)
Thank you.
xtlogit y2 z1 ... zJ zJp1 ... zM i.year, fe
predict double v2h_fe, score
xtpoisson y1 y2 v2h_fe z1 ... zJ i.year, fe vce(robust)
Thank you.
Comment