Hi!
Im am trying to create a loop for predicting stock returns on a dataset I have. My supervisor said that if I use "predict yhat", stata wil use the whole timeframe to predict the returns. My question is: Are there a way to create a loop here, so it predicts the return on using the last 24 months continuously. I am using monthly data. Thanks in advance!
Related Posts with Predict syntax
Stata Export over EXCEL's row limitHi All, 1,048,576 is the max row limit for excel. So if you have STATA data over this limit and wan…
FMM errorI have the following estimation command using fmm: > fmm 3: regress $Y $T $X where $Y $X and $T…
Create a new variable with random probability and with probabilityI have to create 2 variables the first one is a random variable (e1) between 1-17 the second is a v…
Significant variable in panel regression but not in regression year by yearDear Stata users, I need your point of view about this subject. I run a xtlogit regression with the …
Oaxaca & diff-in-diff advice (OLS assumtions)Hello, I am doing an oaxaca decomposition of the ethnic pay gap and then doing a diff-in-diff analy…
Subscribe to:
Post Comments (Atom)
0 Response to Predict syntax
Post a Comment