Hi all,
I want to generate the fitted values for the following regression (mstat, state and year are factor variables):
I want to generate the predicted values based on variable income2 instead of income, but using the coefficients from the above regression:
How should I add the dummy variable coefficients and also the interaction coefficients at the end of the above command? Is there a way other than generating all the dummy variables separately?
Thanks,
I want to generate the fitted values for the following regression (mstat, state and year are factor variables):
reg pollution income fam_size ib0.mstat i.state##i.year
gen pollution_hat= _b[_cons]+ _b[income]*income2+ _b[fam_size]*fam_size
Thanks,

Comment