Hi,
I am currently working on my MSc Thesis Finance. I am trying to replicate the Lewellen regressions from the Cross-section of Expected Stock Returns (2015) and I got stuck.
First, I would like to forecast estimates of expected returns by using characteristics t-1 and rolling windows of 3 years.
Second, I would like to test predicitve ability by regression 'real' returns on 'forecasted returns'.
I used the following code, but I think a made some misstakes:
gen lag_LogSize = LogSize[_n+1]
gen lag_LogBM = LogBM[_n+1]
gen lag_Return = Return[_n+1]
asreg returnsmonthly lag_LogSize lag_LogBM lag_Return, by(IdentifierNumber) wind(year -2 0) fit
sum _fitted , detail
tabstat _fitted, stat(mean sd p10 p90)
drop _Nobs - _b_cons
asreg returnsmonthly _fitted, by(IdentifierNumber) wind(year -2 0) newey(4)
sum _fitted - _se_cons
Could someone help me out?
Thank you!
Related Posts with Forecast estimation using rolling windows
How to drop observations missing an '@' markI'm trying to merge two datasets using the email addresses. There are a number of observations in t…
pscoreIs the command pscore present in Stata 16? …
psgraphI'm using the psgraph command to generate a propensity score histogram with the binary treatment var…
Questions about asdoc with option keepHello, everyone! I am using asdoc to report some nested regression tables to Word. For the sake of …
Can strL be disabled? It is breaking all my pre-16 code.The strL data type is clearly useful, but the fact that it can't be used for a merge is breaking bac…
Subscribe to:
Post Comments (Atom)
0 Response to Forecast estimation using rolling windows
Post a Comment