Hi, hope this question and description is easy to comprehend
I have gathered data for monthly returns for 49 industries from 2007 - 2018, as well as risk free rate (rf) and market returns, I wish to calculate a rolling beta for a 36 month window.
First issue:
The dates is formatted as 200701, 200702,...., 201812 with no days. How can I create a variable so stata recognizes it as months to create a window(36)
Second issue:
What would be the most reasonable code to use? I have been trying "rolling" but the the time variable seem to make it all messed up
Thank you in advance
Related Posts with Issue with calculating rolling betas for 36 months period
Calculating differences in socioeconomic inequalitiesHi I was wondering if any one can help as fairly new to this. I am trying to establish if there is a…
Graph Regression Discontinuity with controlsDear all, i'm implementing a regression discontinuity design. The sample is not stricly balanced, s…
fixed effect interaction with many values of FEHi, I am trying to run a specification using reghdfe, where I interact a district indicator (unique…
Automating STATA with each 5th variable, each 7th variable and each second variable on each 6th variable.Hello, I'm new to STATA and I'm using STATA 14. I have 70 variables and I want regress each 5th var…
jorda 2005hi friends. who can help me to understand article jorda 2005? …
Subscribe to:
Post Comments (Atom)
0 Response to Issue with calculating rolling betas for 36 months period
Post a Comment