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
Highly Left Skewed variableHello, I wanted to run a panel logistic regression with dependent variable Y (0, 1) and an explanat…
Identifying the newly employed receptionist and the waitresses who joined the enterprise after the new receptionist assumed officeHi, I have the follwoing sample: Code: ssc install dataex clear input int year str6 staff_id str5 h…
Multilevel ModelsHi; I am runing runing linear model with four levels. I have not been able to find out what the mean…
Creating Lagged variables with repeated valuesDear all, I wanted help in creating lagged variables when there are repeated values in the dataset.…
posterior means for crossed random effects from logistic random intercept modeldear statalist members, I am trying to estimate the posterior means of two crossed random effects f…
Subscribe to:
Post Comments (Atom)
0 Response to Predict syntax
Post a Comment