Error in ==> dynare at 132

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.

Error in ==> dynare at 132

Postby chadhoward » Sat May 08, 2010 12:47 pm

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) ;
Attachments
ireland_8May1331.mod
(6.56 KiB) Downloaded 95 times
chadhoward
 
Posts: 6
Joined: Sat May 08, 2010 12:37 pm

Re: Error in ==> dynare at 132

Postby jpfeifer » Sat May 08, 2010 4:10 pm

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.
------------
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: Error in ==> dynare at 132

Postby chadhoward » Sat May 08, 2010 8:49 pm

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) ;
Attachments
ireland_8May2146.mod
(7.65 KiB) Downloaded 98 times
chadhoward
 
Posts: 6
Joined: Sat May 08, 2010 12:37 pm

Re: Error in ==> dynare at 132

Postby jpfeifer » Sun May 09, 2010 7:37 am

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;
------------
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: Error in ==> dynare at 132

Postby chadhoward » Sun May 09, 2010 7:30 pm

jpfeifer, you are amazing. Thanks :)
chadhoward
 
Posts: 6
Joined: Sat May 08, 2010 12:37 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests

cron