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
Validity and Robustness checks for Pooled/Repeated Cross-Sectional DataHi, I am trying to identify the impact of race on unemployment (due to COVID-19) from April to Decem…
Suggestions for statistical tests to run on variables before OLS regression?Hi guys, Im a beginner user, i have a short project that i need some help on. I have an OLS regress…
Dividing series of variables through loopingHi, I have variables Jan_13 to Mar_21, referring to months January 2013 to March 2021. I need to cre…
Exporting multiple wntestq (Ljung-Box test) results with panel dataHello. I want to export the resulting tables from a loop of portmanteau / Ljung-Box tests (wntestq).…
l2.X variable as IV for X? Anderson Hsiao(1981). how to test for endogeneity panel (2sls)Hi, I'm a student and I'm trying to determine a model to use for my dataset. The goal is to estimate…
Subscribe to:
Post Comments (Atom)
0 Response to Predict syntax
Post a Comment