Matrix is singular to working precision

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.

Matrix is singular to working precision

Postby eta » Fri Dec 26, 2014 6:07 pm

Hi, what is wrong with this model ? It finds the steady states but the following problem occurs:
Warning: Matrix is singular to working precision.
> In sim1 at 128
In simul at 126
In gshock_percentage2 at 240
In dynare at 180
Warning: Matrix is singular to working precision.
> In sim1 at 128
In simul at 126
In gshock_percentage2 at 240
In dynare at 180


Simulation terminated after 4 iterations.
Total time of simulation : 0.297
Error using sim1 (line 144)
Simulation terminated with NaN or Inf in the residuals
or endogenous variables. There is most likely something
wrong with your model.

Error in simul (line 126)
sim1;

Error in gshock_percentage2 (line 240)
simul();

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

Thanks
eta
 
Posts: 70
Joined: Sat Sep 27, 2014 3:48 pm

Re: Matrix is singular to working precision

Postby eta » Sat Dec 27, 2014 9:23 am

I attach a new version of the mod file, which is better organized. Using
Code: Select all
model_diagnostics
in the unstable version 2014-12-18, no obvious problems are detected.
eta
 
Posts: 70
Joined: Sat Sep 27, 2014 3:48 pm

Re: Matrix is singular to working precision

Postby jpfeifer » Sun Dec 28, 2014 10:25 am

As communicated several times, try to think about the economic intuition. Given the time you are trying to solve a model of this type, it is more likely that there is a fundamental problem rather than an easy Dynare issue. My hunch is that your current model setup does not feature an equilibrium at all and that is why Dynare does not find one. Have you tried easier versions of your model?
------------
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: Matrix is singular to working precision

Postby eta » Sun Dec 28, 2014 11:40 am

I have the same impression. I have solved the baseline model without constraints on nominal wage, so it is clear that the problems arise when introducing such constraint. Unfortunately, I cannot think of anything easier than that. I am simply setting a nominal wage adjustment rule, w_r, and imposing that w_t=max(w_r,w_eq). It could well be that w_eq is the problem. Do you have any suggestion ? Thanks.
eta
 
Posts: 70
Joined: Sat Sep 27, 2014 3:48 pm

Re: Matrix is singular to working precision

Postby jpfeifer » Wed Dec 31, 2014 3:55 pm

As I said, try to make the model easier. Strip away any unnecessary features like e.g. capital or complicated utility functions. Then try to nest the flexible version and the sticky version with e.g. some wage adjustment cost. If the cost goes to infinity, you have perfectly sticky prices. Try to get some intuition if there is a threshold above which the model does not work or whether there generally is no equilibrium.

Even better: check the literature for the experience of other people with these types of models.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests