SS NaN - Warning: 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.

SS NaN - Warning: Matrix is singular to working precision.

Postby sophapi » Mon Feb 29, 2016 2:37 am

I am trying to run a simple one good two country model. I do not understand what am I doing wrong. I have initialized the parameters and declared everything as it is supposed to be but I get the following message when I try to run the model. Do you know what am I missing? Thank you.


Warning: Matrix is singular to working precision.
> In evaluate_steady_state (line 85)
In steady_ (line 54)
In steady (line 81)
In OECM (line 254)
In dynare (line 180)

Residuals of the static equations:

Equation number 1 : NaN
Equation number 2 : NaN
Equation number 3 : NaN
Equation number 4 : NaN
Equation number 5 : NaN
Equation number 6 : NaN
Equation number 7 : NaN
Equation number 8 : NaN
Equation number 9 : NaN
Equation number 10 : NaN
Equation number 11 : NaN
Equation number 12 : NaN
Equation number 13 : NaN
Equation number 14 : NaN
Equation number 15 : NaN
Equation number 16 : NaN
Equation number 17 : NaN
Equation number 18 : 0

Error using print_info (line 80)
The steady state contains NaN or Inf

Error in steady (line 92)
print_info(info,options_.noprint, options_);

Error in OECM (line 254)
steady;

Error in dynare (line 180)
evalin('base',fname) ;
Attachments
OECM.mod
This is the mod file
(1.76 KiB) Downloaded 102 times
sophapi
 
Posts: 3
Joined: Sat Feb 27, 2016 3:39 pm

Re: SS NaN - Warning: Matrix is singular to working precisio

Postby jpfeifer » Mon Feb 29, 2016 9:25 am

Put resid before steady. You will see that the first two equations include a constant term (due to (1-delta)) that should not be there in a properly linearized 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: SS NaN - Warning: Matrix is singular to working precisio

Postby sophapi » Tue Mar 01, 2016 2:42 pm

Thank you for your response. This helped make the code run.
sophapi
 
Posts: 3
Joined: Sat Feb 27, 2016 3:39 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests