Initial value problem

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.

Initial value problem

Postby Susie » Sun Jul 06, 2014 5:48 pm

Dear all,

Hello, I try to replicate Corsetti, Dedola, and Leduc (2008)'s work about the transmission mechanism of the productivity shocks.
I already derive the first order conditions and solve the steady state problem. And I believe they are correct.
However, when I run Dynare, it keeps showing that some initial values are set to be zero because their exponents are smaller than 1.
Therefore, the Jacobian contains Inf or NaN.

I don't understand why it can't run…
Can anyone help? What should I do?

Thanks a lot.

Susie
Susie
 
Posts: 5
Joined: Sun Jul 06, 2014 5:38 pm

Re: Initial value problem

Postby jpfeifer » Mon Jul 07, 2014 7:49 am

Please post the mod-file
------------
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: Initial value problem

Postby Susie » Mon Jul 07, 2014 3:45 pm

Dear Jpfeifer,

This is my mod file.

Thanks a lot.

Best,
Susie
Attachments
CDL2008.mod
(21.38 KiB) Downloaded 147 times
Susie
 
Posts: 5
Joined: Sun Jul 06, 2014 5:38 pm

Re: Initial value problem

Postby Susie » Mon Jul 07, 2014 7:33 pm

Dear Jpfeifer,

I rechecked the work and did some modifications.
But I encountered the same problem….

Thanks.

Best,
Susie
Attachments
CDL(2008)new .mod
(21.3 KiB) Downloaded 175 times
Susie
 
Posts: 5
Joined: Sun Jul 06, 2014 5:38 pm

Re: Initial value problem

Postby jpfeifer » Tue Jul 08, 2014 8:34 am

The second part of your initval-block is wrong. You assign to country 1 the country 2 values, but you did only define the country 1 values. That won't work. Try executing with F9 in Matlab the parameter definitions and then the initval block. You will see that many variables you use have not yet been defined.
------------
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: Initial value problem

Postby Susie » Thu Jul 10, 2014 10:15 am

Dear Jpfeifer,

Thanks a lot.
Although the other problem occurs I think I can continuum working.

Thank you very much. :)

Best regards

Susie
Susie
 
Posts: 5
Joined: Sun Jul 06, 2014 5:38 pm


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 1 guest