Strange Bug
Posted: Mon Feb 13, 2012 7:57 pm
Hi,
It seems that the order in which you write down equations matters.
For example, in the attached RBC1.mod
If you move the following four lines:
x = rho*x(-1) + ex;
da = mu + x(-1) + ea;
dc = ca - ca(-1) + da;
di = ia - ia(-1) + da;
Move them to the beginning of the model, versus the end, or take one of the 4 equations and move it around. Switching order seems to change the value of fixed point interest rate a lot, as is evident in the following matlab commands:
load('RBC1.mat'); dyn_ss(dyn_i_rk)
This is very strange. Why should the order in which the equations are entered in the model section matter. I use dynare++ 4.2.4 linux, order=2. The same phenomenon is also in dynare++ 4.2.2 windows
It seems that the order in which you write down equations matters.
For example, in the attached RBC1.mod
If you move the following four lines:
x = rho*x(-1) + ex;
da = mu + x(-1) + ea;
dc = ca - ca(-1) + da;
di = ia - ia(-1) + da;
Move them to the beginning of the model, versus the end, or take one of the 4 equations and move it around. Switching order seems to change the value of fixed point interest rate a lot, as is evident in the following matlab commands:
load('RBC1.mat'); dyn_ss(dyn_i_rk)
This is very strange. Why should the order in which the equations are entered in the model section matter. I use dynare++ 4.2.4 linux, order=2. The same phenomenon is also in dynare++ 4.2.2 windows