Page 1 of 1

Eigenvalues is close to 0/0

PostPosted: Wed Apr 15, 2015 3:39 am
by michel.cands
Hi, my name is Michel,


I'm trying run a model with labour market frictions and bargaining power but i had a bad experience with my code.
I'm working with three files, one for the calibration, one for solve a system inside the calibration and one for the model.
The calibration file was checked, but every time I run the model I get the following error message (after the steady state results):


Error using print_info (line 51)
One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than 1e-6)

Error in stoch_simul (line 71)
print_info(info, options_.noprint);

Error in codigock (line 469)
info = stoch_simul(var_list_);

Error in dynare (line 120)
evalin('base',fname) ;

My steady states are not consistent?
Is there a way to fix that?
Is there a way to see those eigenvalues or the equations that determine them?

Sorry about the English.

Thaks

Re: Eigenvalues is close to 0/0

PostPosted: Thu Apr 16, 2015 2:18 pm
by jpfeifer
Try running model_diagnostics.

Re: Eigenvalues is close to 0/0

PostPosted: Sat Apr 25, 2015 11:36 pm
by michel.cands
Dear Johannes Pfeifer

Thanks for the answer;
But when i try running the model_diagnostics, i get the following message:

Error using model_diagnostics (line 38)
Not enough input arguments.

Is there any way to fix this?

Thanks

Re: Eigenvalues is close to 0/0

PostPosted: Sun Apr 26, 2015 8:31 am
by jpfeifer
If you don't write
Code: Select all
model_diagnostics;

into your mod-file, but try to run it from the Matlab command window, you need to type
Code: Select all
model_diagnostics(M_,options_,oo_)

Re: Eigenvalues is close to 0/0

PostPosted: Thu May 28, 2015 4:37 pm
by michel.cands
Dear Johannes Pfeifer
Thanks for the tip;
I get the following message:

"model_diagnostic: the Jacobian of the static model is singular
there is 1 colinear relationships between the variables and the equations"

This is surprising, since I'm trying to replicate an existing model.
I'm trying to replicate the model " Bargaining, Aggregate Demand and Employment" by Charpe and Kuhn (2012) which was published in Dynare Working Pappers, but the code found on the page is different from the model presented by the authors in the paper.

The available code on the site relates to another model and the authors develop a convergence for the base model of the article. I would like to replicate this model in the article by pure form, without any convergence. I wrote all the equations, checked all leads, but the model does not run.

Theoretically, since the authors found solution, I should be able to obtain it also in pure form.

Any advice?

Again, thank you for your attention! It has been a great help!

Re: Eigenvalues is close to 0/0

PostPosted: Fri May 29, 2015 3:17 pm
by jpfeifer
There must be a mistake somewhere, either in your code or in the one of the authors. Have you tried contacting them?