Dear Stata users
My data is in panel format, daily frequency (id, date). I need to run a regression for each firm (id) each day (date) and obtain regression coefficient, constant and residuals.
I have tried the following code:
Stata returned the following error: no result for all obs: reg BuyInstVolN sent_vol_nonzero_lag
What's wrong with the code? Any help is much appreciated.
Thank you.
My data is in panel format, daily frequency (id, date). I need to run a regression for each firm (id) each day (date) and obtain regression coefficient, constant and residuals.
I have tried the following code:
Code:
rangestat (reg) BuyInst sent_vol_nonzero_lag, interval (date 0 0) by(id)
What's wrong with the code? Any help is much appreciated.
Thank you.
Comment