For the model,
Y= Yt-1+X1t+X2t+X3t+e
I want to create a loop to predict future values such that the predicted value for 2019 will automatically be replaced in the lag variable (Yt-1) in 2020. Can anyone help me to develop this loop?
Related Posts with A loop to predict a log-model
Creating Pooled AveragesHello, I wanted to create pooled averages for a project i'm working on. I am not familiar with doin…
How to take a random sample of panel data and keep all person-year-observations for a particular IDI try to take a random sample from a huge unbalanced panel dataset. For the MWE data, I would like t…
Combining the values of different categories into ONE with a repeated IDI have a variable (foodgr) which is divided into 4 categories (1,2,3,4). I have another variable, v…
Spatial Weight Matrix for NUTS 2 European regionsHello, I am trying to finds Moran's I coefficient in certain NUTS2 European regions and I need their…
Generate variable capturing properties of other variablesDear all, I have a household survey dataset consisting of two rounds. The dataset provides informat…
Subscribe to:
Post Comments (Atom)
0 Response to A loop to predict a log-model
Post a Comment