hello, I want to get the fitted value of the first stage from "xtivreg2" but unfortunately, I get an error, I searched and tried a lot.
I am so thankful to receive your advice.
regards,
Code:
forvalues i = 0/5 { xi: xtivreg2 d`i'ltotalfertility (shock_recession = instrument) l(1/2).shock_recession l(1/1).d0ltotalfertility tt*, first savefirst fe partial(tt*) robust kernel(tru) bw(1) predict yhat`i' }
predict not supported after xtivreg2 with partialling-out option
I am so thankful to receive your advice.
regards,
Comment