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
convert time variable from; 'Jan 2018' to 'Jan'I want add a time variable that only shows the months in this format; 'Jan', 'Feb', .. So I have 2 t…
Exporting Mean/Median of Variable X by variables Y and ZI am using data from the IPUMS-CPS ASEC series. I am looking to calculate the median income for each…
Exporting Mean/Median of Variable X by variables Y and ZI am using data from the IPUMS-CPS ASEC series. I am looking to calculate the median income for each…
How to combine SDC Platinum/ThomsonOne with CRSP?I have a dataset from SDC containing 127 000 M&A bids, including announcement date, year, compan…
Lasso inference for cox regressionDear STATA team, I hope all is well. I was trying to do lasso inference for survival ,model. The va…
Subscribe to:
Post Comments (Atom)
0 Response to Predict syntax
Post a Comment