I have a burning question for you

So I have a panel regression and would like to estimate the residual of such an estimation. In particular I have to do it using the command xtdata and, afterwards, estimating the residuals.
My problem is the following: when performing post estimation commands on reg, e.g. using:
Code:
predict av_t, res
I have also a further concern related: in particular, when performing the regression, I insert a variable that is time dependent, i.e. having set the variable Year as the time variable, I construct:
Code:
egen mean_gr_ratemarket_sales = mean(gr_rate_sales_atc3), by(Year)
Thank you very much,
Federico
0 Response to Xtdata
Post a Comment