Page 1 of 1

Substitution of endo lags

PostPosted: Sun Jan 26, 2014 12:02 pm
by settler03
Dear All
when i run my code, received this error:

Substitution of endo lags >= 2: added 1 auxiliary variables and equations.
ERROR: There are 23 equations but 22 endogenous variables!

But in my model block, i have 22 equation and not 23.
anybody knows what happen?

Best Regards

Re: Substitution of endo lags

PostPosted: Mon Jan 27, 2014 7:41 am
by jpfeifer
As Dynare states, it substitutes one variable with a lag of (-2) with an auxiliary variable. That adds one variable and one equation. If you forget about this, you have 22 equations as you said, but you also only have 21 declared variables:
Code: Select all
var m c r w l pi rk mc y a k i g mb dg fr oil p gro_mb pi_star nu;

Re: Substitution of endo lags

PostPosted: Mon Jan 27, 2014 8:53 am
by settler03
many thanks for your answer
how i run this file?

Re: Substitution of endo lags

PostPosted: Mon Jan 27, 2014 10:04 am
by jpfeifer
Find the missing equation.