Dynare Theoretical moments Nan

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.

Dynare Theoretical moments Nan

Postby DaniilN » Tue May 22, 2012 9:27 am

I tried to write a code of a model that I found in Sosunov,Zamulin 2007 "Monetary Policy in an Economy sick with Dutch Disease". Unfortunately, I got infinite moments of some variables( 5).
Please, look at my code and I will appreciate any suggestions

Thank you in advance
Attachments
SZ.mod
(1.13 KiB) Downloaded 76 times
DaniilN
 
Posts: 2
Joined: Tue May 22, 2012 9:13 am

Re: Dynare Theoretical moments Nan

Postby kyri82 » Wed May 23, 2012 9:18 am

your model has a unit root - see the eigenvalues. That can be either because either you did not linearise the model correctly, or you set some parametres to values that generate a unit root. After a very quick look, I saw that you have:
- r=1. are you sure this is fine?
- Your exogenous process is: phooil(+1)=pho*phooil+oilshock; That means that the oilshock is an expected shock. Is that what you want?

Other things: What type of utility function do you have? Do you have investment adjustment costs..? Is it an open/close economy model?
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France

Re: Dynare Theoretical moments Nan

Postby DaniilN » Wed May 23, 2012 1:59 pm

Kyri82, thank you for your response.
You know, I tried to play with "r" this parameter but nothing changed. There is no explanation in the article how to define it. Firstly, I thought that "r" is a variable but there is no any equation and no superscript t with it. So, i decided to denote it as a parameter.

Talking about phooil(+) and etc. I have already changed it, nothing changes too in my model.
It is an open model. As I understood there is no any adjustment costs but probably I am not right. http://www.cefir.ru/papers/WP101.pdf - this is the article page 6 -description of the model and basic equations
DaniilN
 
Posts: 2
Joined: Tue May 22, 2012 9:13 am

Re: Dynare Theoretical moments Nan

Postby kyri82 » Wed May 23, 2012 2:19 pm

It is a small open-economy model and r is the interest rate and is exogenous thus it is constant - equal to the world interest rate. There are several ways to closing these models - check "Closing small open-economy models" by Schmitt-Uribe and someone else - and one is to assume an endogenous disc. factor as the author does in this case. Anyway, I am not sure what the problem is but make sure you put the equations in correctly. The author gives you the log-linear model so it should be ok. But my guess it is a parametre. What other parametres are you not sure what value he gives in the original paper?
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests