Error using ==> SVD

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 using ==> SVD

Postby julietc » Mon Mar 21, 2011 5:05 pm

Hi,
I'm having the following error

??? Error using ==> svd
Input to SVD must not contain NaN or Inf.

Error in ==> cond at 40
s = svd(A);

Error in ==> solve1 at 118
elseif bad_cond_flag && cond(fjac) > 1/sqrt(eps)

Error in ==> dynare_solve at 76
[x,info]=solve1(func,x,1:nn,1:nn,jacobian_flag,1,varargin{:});

Error in ==> steady_ at 120
[oo_.steady_state,check] = dynare_solve([M_.fname '_static'],...

Error in ==> steady at 54
steady_;

Error in ==> usmodelST1shocks at 474
steady;

Error in ==> dynare at 132
evalin('base',fname) ;

I have computed the residuals from the steady state guess and it looks ok. Any idea where the problem is?
Attached my code
Thanks!
j
Attachments
usmodelST1shocks.mod
S&W with unit roots
(7.71 KiB) Downloaded 190 times
julietc
 
Posts: 1
Joined: Thu Mar 10, 2011 10:31 pm

Re: Error using ==> SVD

Postby SébastienVillemot » Mon Apr 11, 2011 12:25 pm

Hi,

You have some NaN in the jacobian of your model.

You write "ewma(-1)^cmaw" while "ewma=0" and "cmaw=0": the derivative of this object is undefined. Similarly, you have "epinfma(-1)^cmap".

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

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