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
Running regression while controlling for industry and yearsI'm investigating the influence of patenting (pat_yr -> patents per year) on the returnoninvestem…
merge 1:m using new_id, overwrites id in masterfileDear listers I have two files that i want to merge. File 1 includes: id (string), case_id (string)…
Odd scalar behaviourDear statalisters, I am running the following code to cut up a very large file (>15g) into small…
Creating 2 dummy variables in StataHi everyone I am back with another question to help me out I have a table output containing lots o…
Counting yearly cumulative observationsHi all! I am working with the dataset in the attachment. The data in the variable appln_id are Amer…
Subscribe to:
Post Comments (Atom)
0 Response to Fama MacBeth with rolling betas
Post a Comment