Page 1 of 1

error _it undefined

PostPosted: Fri Sep 30, 2011 7:35 am
by gazzani.andrea
I used up to today Dynare 4.1, and my model worked correctly, now I switched to 4.2 and I got the following message. Does somebody know why?

??? Input argument "it_" is undefined.

Error in ==> Problemfix2_dynamic at 46
rhs =1-params(3)+params(3)*y(3)+x(it_, 2);

Error in ==> dr1 at 153


Error in ==> resol at 128
else

Error in ==> check at 45


Error in ==> Problemfix2 at 167
check;

Error in ==> dynare at 132
evalin('base',fname) ;


Thank you

Re: error _it undefined

PostPosted: Wed Oct 12, 2011 5:07 pm
by SébastienVillemot
Can you post your MOD file, so that we can replicate your problem and determine if it is a bug of Dynare?

Re: error _it undefined

PostPosted: Wed Oct 12, 2011 5:42 pm
by gazzani.andrea
Oh thanks I installed Dynare 4.2.2 and now it is fine, so probably was just a problem related to the install of 4.2.1.
Thanks anyway
Andrea

Re: error _it undefined

PostPosted: Thu May 10, 2012 3:32 pm
by dha
i'm having the same problem with dynare 4.2.5
it happens when simulating the shock
MODEL SIMULATION

??? Input argument "it_" is undefined.

Error in ==> model_dynamic at 16
rhs =y(5)-params(10)*(y(2)-y(6)-x(it_, 1))+x(it_, 5)-x(it_+1, 5)+T22*params(3)*(x(it_+1, 3)-x(it_,
3))+params(10)*params(1)*x(it_, 4);

Error in ==> simk at 229
[d1,jacobian] = feval([M_.fname '_dynamic'],oo_.endo_simul(iyr),oo_.exo_simul, M_.params, it_);

Error in ==> simul at 95
simk;

Error in ==> model at 164
simul();

Error in ==> dynare at 120
evalin('base',fname) ;

Re: error _it undefined

PostPosted: Thu May 10, 2012 7:13 pm
by jpfeifer
This is a bug in Dynare 4.2.5. Please replace simk.m in the Dynare-Matlab folder with the attached one.

Re: error _it undefined

PostPosted: Thu May 10, 2012 7:21 pm
by dha
thank you it is working now