Substitution of endo lags

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Substitution of endo lags

Postby settler03 » Sun Jan 26, 2014 12:02 pm

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
settler03
 
Posts: 17
Joined: Wed Nov 07, 2012 7:16 pm

Re: Substitution of endo lags

Postby jpfeifer » Mon Jan 27, 2014 7:41 am

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;
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Substitution of endo lags

Postby settler03 » Mon Jan 27, 2014 8:53 am

many thanks for your answer
how i run this file?
settler03
 
Posts: 17
Joined: Wed Nov 07, 2012 7:16 pm

Re: Substitution of endo lags

Postby jpfeifer » Mon Jan 27, 2014 10:04 am

Find the missing equation.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests