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
Moderation of time (count analysis vs survival regression)Hello everyone, I am struggling with the correct interpretation of an interactive term (the moderat…
output coeffs and CI from looped cox regressionHi there, I need to run a cox regression over 21 pollutants (many times) and I want to then output H…
stataHello I have the household code, the ratio of household members to the guardian and the age of the h…
Total over values of a row up to a certain value (long format)Hi there, I have panel data set in long format with company data containing funding data over 72 pe…
Grouping observationsHello community this my first post. I'm a SAS user, new to STATA, require it for my graduate progra…
Subscribe to:
Post Comments (Atom)
0 Response to Rolling Regression to Calculate Abnormal Returns
Post a Comment