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?
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?
Comment