Error using svd - Iacoviello type model

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 - Iacoviello type model

Postby mlkmx » Thu Jul 18, 2013 1:29 pm

I am trying to simulate Rubio's 'House rental versus Purchase: Theory and Evidence' paper. This is a Iacoviello type model but with the extension of the rental paper.

When I attempt to simulate the model, I obtain this error message:

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

Error in cond (line 36)
s = svd(A);

Error in solve1 (line 120)
elseif bad_cond_flag && cond(fjac) > 1/sqrt(eps)

................

I have searched the forum for help but have not noticed anything. How can I improve on this? Thank you for reading.
Attachments
rent_lin_new.mod
(4.06 KiB) Downloaded 65 times
mlkmx
 
Posts: 3
Joined: Thu Jul 18, 2013 1:09 pm

Re: Error using svd - Iacoviello type model

Postby jpfeifer » Thu Jul 18, 2013 2:46 pm

Using the unstable version, the output is:

STEADY: The Jacobian contains Inf or NaN. The problem arises from:

STEADY: Derivative of Equation 12 with respect to Variable n_s (initial value of n_s: 0)
STEADY: Derivative of Equation 12 with respect to Variable n_b (initial value of n_b: 0)
STEADY: Derivative of Equation 16 with respect to Variable r_steady (initial value of r_steady: 0)

STEADY: The problem most often occurs, because a variable with
STEADY: exponent smaller than 1 has been initialized to 0. Taking the derivative
STEADY: and evaluating it at the steady state then results in a division by 0.
------------
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 using svd - Iacoviello type model

Postby mlkmx » Thu Jul 18, 2013 3:19 pm

Thank you very much for responding jpfeifer. When I re-enter the initial values as 1 for the variables in question, I continue to get this problem that I've had since the beginning:

'Impossible to find the steady state. Either the model doesn't have a steady state, there
are an infinity of steady states, or the guess values are too far from the solution'

From my model can you identify how I can fix this. I have attached a new mod file.

Really appreciate the help you've given me. Thank you
Attachments
rent_lin_new.mod
(3.92 KiB) Downloaded 61 times
mlkmx
 
Posts: 3
Joined: Thu Jul 18, 2013 1:09 pm

Re: Error using svd - Iacoviello type model

Postby jpfeifer » Thu Jul 18, 2013 3:32 pm

As always, try using pencil and paper to get betterstarting values.
------------
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 using svd - Iacoviello type model

Postby mlkmx » Thu Jul 18, 2013 3:54 pm

Okay i'll do that. Thank you very much again.
mlkmx
 
Posts: 3
Joined: Thu Jul 18, 2013 1:09 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests