Dear Stata Users,
I am trying to calculate 5-year rolling window regression using mothly data with a minimum requirement of 2 years. For this I use the following code:
What I am struggling with is that I dont understand whether "asreg" calulates trailing betas. For example , if estimated beta for Sep, 1990 is 0.2 does it mean that it started the regression from Aug 1990 over 59 month? What I need is a trailing beta, like for a given firm-date observation there should be a beta_estimated starting from the previos observation till -60th.
Please, advise me this issue.
I am trying to calculate 5-year rolling window regression using mothly data with a minimum requirement of 2 years. For this I use the following code:
Code:
bys permno: asreg ret_rf mean_mrkt_year, wind(fdate 60) min(24)
Please, advise me this issue.
Comment