Hello,
I would like to run a Fama-MacBeth regression with time varying betas and risk prices. I have m_return as independent variable and five independent risk factors. Without any rolling window my regression would be:
*First pass: Time-series Fit
foreach i in `r(levels)' {
reg m_return f1 f2 f3 f4 f5 if a== `i'
replace beta_f1 = _b[f1] if a== `i'
replace beta_f2 = _b[f2] if a== `i'
replace beta_f3 = _b[f3] if a== `i'
replace beta_f4 = _b[f4] if a== `i'
replace beta_f5 = _b[f5] if a== `i'
}
*Second pass: Cross-sectional fit
xtfmb m_return beta_f1 beta_f2 beta_f3 beta_f4 beta_f5
I would like to estimate the risk quantities β for each individual m in m_return using rolling 60-month regressions of excess returns r on the macro factors f:
Any suggestion on how to do it?
Related Posts with Fama MacBeth with rolling betas
Restricted cubic splines (uvrs fracplot) - plotting scale issues and how to pull out specific data points on spline?Hi folks - minor (I hope) but somewhat annoying question RE. uvrs fracplot functions in Stata, and a…
Calculating Institutional investor churn rateHello, Sorry, am new to stata and my question might seem too simple but just know am helpless and gu…
Multiple line graphs 2 yaxisDear STATA users, Once again I need guidance to construct a multiple line graph with 2 y-axes. The …
Special bar graph 'options'I've seen this type of code used in a number of places (and even have it in a few of my own do-files…
Need Help Handling Duplicates When Making Panel Data SetI am constructing panel data from 2 sets of surveys administered monthly for 7 years. The first is c…
Subscribe to:
Post Comments (Atom)
0 Response to Fama MacBeth with rolling betas
Post a Comment