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
Check if two exposure varibales are independent of each otherHi, Apologies if this is very obvious, I've managed to get confused about it. If i want to check if…
Count distinct digits of observationsDear statalists, I would like to count the number of digits an observation has as follows: Numbe…
Invalid syntax error when combining foreach and logout ttable2Hi, I am trying to output the ttable2 results of different groups. The code I am writing is as foll…
SEM and the predicted latent variableHello I am doing a confirmatory factor analysis, using SEM, to construct three latent variables for…
Difference-in-difference with interactionsHi, I'm trying to estimate a straight forward Difference-in-Difference model to find the impact of …
Subscribe to:
Post Comments (Atom)
0 Response to Forecast estimation using rolling windows
Post a Comment