Dear Stata Users,
I would like to estimate a regression like
by firm: reg y x1 x2
then I would like to obtain fitted values based on the parameter estimates for each firm. How can I achieve this?
Please correct me if I am wrong but I think if I run
predict r, residuals
after the regression above, parameter estimates from the last regression is used.
Thank you.
I would like to estimate a regression like
by firm: reg y x1 x2
then I would like to obtain fitted values based on the parameter estimates for each firm. How can I achieve this?
Please correct me if I am wrong but I think if I run
predict r, residuals
after the regression above, parameter estimates from the last regression is used.
Thank you.
Comment