Hi there,
I used the rolling regression with window 12 months to calculate expected Beta and then I calculate expected returns. After that, I calculate abnormal returns = Real returns - Expected returns.
My codes is as the following:
asreg excessR MarpreCSI SmB HmL MOM , wind( Month 12)
gen expectedALPHA4= Riskfreerate3monthdeposit + _b_MarpreCSI * MarpreCSI +_b_SmB * SmB + _b_HmL * HmL +_b_MOM * MOM
gen ALPHA4= rp- expectedALPHA4
and I also calulate the residuals as:
gen resid4= excessR - _b_cons - _b_MarpreCSI * MarpreCSI - _b_SmB * SmB - _b_HmL * HmL - _b_MOM * MOM
So, I wonder my code is correct or not?
Thank you in advance!
Related Posts with Rolling Regression to Calculate Abnormal Returns
Multiplying observations in a variable listIn a dataset of multiple variable lists, I would like to multiply the value of only selected variabl…
Combining variables in the variable list by countryI am looking at the dataset where I have three variable lists: life expectancy by country for specif…
Interpretation of Competing Risk with stcrregI'm new to using competing risk analysis and want to make sure I'm interpreting and using it correct…
Traj command (dropout model)Hello everyone, I am using the traj command to examined gait speed trajectories and I have a questi…
Zero event meta analysis with ipdmetanHey everyone, I'm trying to run a two-stage meta-analysis to generate a forest plot with individual …
Subscribe to:
Post Comments (Atom)
0 Response to Rolling Regression to Calculate Abnormal Returns
Post a Comment