Lagging Forward Looking Variables
Posted: Mon Jun 29, 2015 1:47 pm
Suppose I have rational expectations model of the form: x_{t+1} = F(n_{t-1})*x_t - G(n_{t-1})*x_{t-1}, where n_t = f(x_{t-1}, n_{t-1})
I want to lag the model so that it becomes entirely backward looking and get rid of the rational expectations, then solve it as deterministic. So that:
x_t = F()*x_{t-1} ... etc
However, If I lag every variable those in the vector n_t will appear only in lagged terms. To avoid this I simply redefine n_{t-1} = n_l and lag only the variables in x.
Prior the lagging the model works, but afterwards gives this error:
and some other errors that follow from the latter.
Do you know if what I am doing is possible and if I do it in the right way? Also how can I get a more descriptive error that leads me to the problem?
I want to lag the model so that it becomes entirely backward looking and get rid of the rational expectations, then solve it as deterministic. So that:
x_t = F()*x_{t-1} ... etc
However, If I lag every variable those in the vector n_t will appear only in lagged terms. To avoid this I simply redefine n_{t-1} = n_l and lag only the variables in x.
Prior the lagging the model works, but afterwards gives this error:
- Code: Select all
Warning: Matrix is singular to working precision.
Error using eig
Input to EIG must not contain NaN or Inf.
and some other errors that follow from the latter.
Do you know if what I am doing is possible and if I do it in the right way? Also how can I get a more descriptive error that leads me to the problem?