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
How to interpret the result of dummy1 "#" dummy2Dear all: My code is : Y = gender#father_farmer +X. I expect the result of 1 1 ;the question is why …
Drop - last observation in each rowHi Everyone, Is there a way (command/code) in Stata to drop the last "row-wise varlist" in each row…
Normality testing in binary variables (0/1)Hello I would like to know what would be the appropriate test/method to check the normality of a bin…
Fixed-effects individual slopes with unbalanced data (reghdfe)Dear Stata users, I have a question regarding fixed-effects individual-slopes models, also known as…
Stationarity (unit root) and DCCE estimator (xtdcce2)?Dear members, In the case of DCCE estimator (xtdcce2), I got two unclear things: 1. one of the in…
Subscribe to:
Post Comments (Atom)
0 Response to Rolling Regression to Calculate Abnormal Returns
Post a Comment