Error in ==> dynare at 132
Posted:
Sat May 08, 2010 12:47 pm
by chadhoward
My apologies if this has been dealt with already. I found similar threads, but not exactly error 132. Can anyone see what the problem is here?
>> dynare ireland_8May1331
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
Starting Dynare (version 4.1.0).
Starting preprocessing of the model file ...
Found 22 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
- order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.
??? Error: File: C:\MATLAB7\work\test.m Line: 217 Column: 1
Missing variable or function.
Error in ==> dynare at 132
evalin('base',fname) ;
Re: Error in ==> dynare at 132
Posted:
Sat May 08, 2010 4:10 pm
by jpfeifer
Hi,
you have two obvious issues:
1. The nested comment
- Code: Select all
/*rhog_i = /* This is undefined, since sigg_i = 0.0000 */ */
in line 30 must be deleted
2. rhog_i is not set in the parameter section, hence the steady state computation fails.
Re: Error in ==> dynare at 132
Posted:
Sat May 08, 2010 8:49 pm
by chadhoward
Thanks so much! I've fixed those errors and now get the more promising, but not yet good enough:
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
Starting Dynare (version 4.1.0).
Starting preprocessing of the model file ...
Found 25 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.
Residual for equation number 1 is equal to NaN
Residual for equation number 2 is equal to NaN
Residual for equation number 3 is equal to NaN
Residual for equation number 4 is equal to NaN
Residual for equation number 5 is equal to NaN
Residual for equation number 6 is equal to NaN
Residual for equation number 7 is equal to NaN
Residual for equation number 8 is equal to -2.5824
Residual for equation number 9 is equal to NaN
Residual for equation number 10 is equal to -0.7704
Residual for equation number 11 is equal to -0.32319
Residual for equation number 12 is equal to 0
Residual for equation number 13 is equal to NaN
Residual for equation number 14 is equal to 0
Residual for equation number 15 is equal to 0
Residual for equation number 16 is equal to 0
Residual for equation number 17 is equal to 0
Residual for equation number 18 is equal to 0
Residual for equation number 19 is equal to 0
Residual for equation number 20 is equal to 0
Residual for equation number 21 is equal to 0
Residual for equation number 22 is equal to 0
Residual for equation number 23 is equal to NaN
Residual for equation number 24 is equal to NaN
Residual for equation number 25 is equal to NaN
STEADY: numerical initial values incompatible with the following equations
1 2 3 4 5 6 7 9 13 23 24 25
??? Error using ==> dynare_solve
exiting ...
Error in ==> steady_ at 124
[oo_.steady_state,check] = dynare_solve([M_.fname '_static'],...
Error in ==> steady at 52
steady_;
Error in ==> test at 291
steady;
Error in ==> dynare at 132
evalin('base',fname) ;
Re: Error in ==> dynare at 132
Posted:
Sun May 09, 2010 7:37 am
by jpfeifer
Hi,
you again did the mistake that you used a variable in a computation before it was defined. This time it is in the initval statement. You have line 101-102
- Code: Select all
i_c = (conag*conzg_i - 1 + del_c)*k_c;
i_i = (conag*conzg_i - 1 + del_i)*k_i;
but k_c and k_i are only defined in lines 111-112
- Code: Select all
k_c = (1-theta_i)*conag*conzg_i*(gc - beta*gamma)/(gc-gamma)*(theta_c*(conag*conzg_i - beta*(1-del_i)))/(theta_i*(conag*conzg_i - beta*(1-del_c)))*(beta*theta_i/(conag*conzg_i - beta*(1-del_i)))^(1/(1-theta_i));
k_i = (beta*theta_i*(conag*conzg_i-1+del_c)/(conag*conzg_i - beta*(1-del_i) - beta*theta_i*(conag*conzg_i -1 +del_i)))*k_c;
Re: Error in ==> dynare at 132
Posted:
Sun May 09, 2010 7:30 pm
by chadhoward
jpfeifer, you are amazing. Thanks