IF condition inside the model
Posted: Wed Feb 26, 2014 8:50 am
Hi there,
I need to solve a simple model like a=b+c. I need to solve the model as of t+1 but for series b I want Eviews to use the original values (let's say until t+3 and then use a formula like b=a(-1)*0.5. The only way I could think of this is to solve the model with a loop for each t. First I calculate a and I use it to guess b (either the original values if I am in t+1 and t+2 or the formula based if we are in t+3 or forward).
t t+1 t+2 t+3 t+4 t+5
b 1 2 3 4
c 1 2 4 3 6 7 8
I want to solve from t+1 and t+5.
I hope I was clear enough :)
Cheers,
Fede
I need to solve a simple model like a=b+c. I need to solve the model as of t+1 but for series b I want Eviews to use the original values (let's say until t+3 and then use a formula like b=a(-1)*0.5. The only way I could think of this is to solve the model with a loop for each t. First I calculate a and I use it to guess b (either the original values if I am in t+1 and t+2 or the formula based if we are in t+3 or forward).
t t+1 t+2 t+3 t+4 t+5
b 1 2 3 4
c 1 2 4 3 6 7 8
I want to solve from t+1 and t+5.
I hope I was clear enough :)
Cheers,
Fede