Perturbation theory

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.

Perturbation theory

Postby hewei2004 » Wed Oct 29, 2014 3:51 pm

Hi I wonder how perturbation theory should affect the following:
I have a mod file in which I have written variables in two types are both present in the mod file.
type1.A variable that has been logged. And thus have equation of the form
exp(a)=exp(b)/exp(c)
type2. A variable that has not been logged. And thus have equation of the form
d=exp(e)/exp(f)

When I run dynare, I find that the first moment[mean] of some of the variables of type2 are NaN. I wonder if it is perturbation theory at work and I should have consistently turned all variables to type1.

The second observation is that , despite dynare not being able to calculate first moment, second moments are calculated and IRFs are successfully plotted in dynare.
hewei2004
 
Posts: 40
Joined: Thu Feb 09, 2012 1:07 am

Re: Perturbation theory

Postby jpfeifer » Wed Oct 29, 2014 4:10 pm

No, you can mix logged and not logged variables in perturbation. There must be something else wrong. Provide the files.
------------
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: Perturbation theory

Postby hewei2004 » Wed Oct 29, 2014 4:26 pm

Not ready for public view, May I send it privately to your mannheim email address please?
Last edited by hewei2004 on Wed Oct 29, 2014 5:18 pm, edited 2 times in total.
hewei2004
 
Posts: 40
Joined: Thu Feb 09, 2012 1:07 am

Re: Perturbation theory

Postby jpfeifer » Wed Oct 29, 2014 4:26 pm

Yes.
------------
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: Perturbation theory

Postby jpfeifer » Thu Oct 30, 2014 9:11 am

Your model contains several unit roots. This explains the NaN. Some unconditional moments simply do not exist.

Regarding the file you sent me, the loop you wrote is extremely inefficient. Take a look at http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=6141
------------
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: Perturbation theory

Postby hewei2004 » Thu Oct 30, 2014 4:20 pm

Thank you.
Maybe the 3 unit roots is related to the 3 colinear relations found in model_diagnostics?
May I know how to remove the unit root in my two country model?
hewei2004
 
Posts: 40
Joined: Thu Feb 09, 2012 1:07 am

Re: Perturbation theory

Postby jpfeifer » Thu Oct 30, 2014 4:48 pm

Unit roots will always trigger a collinearity. Without knowing the model, it is impossible to tell where they come from.
------------
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: Perturbation theory

Postby hewei2004 » Fri Oct 31, 2014 3:25 am

Can indeterminancy ie multiple solutions exist , cause unit root? Or unit root exclusively means a variable has trend?
hewei2004
 
Posts: 40
Joined: Thu Feb 09, 2012 1:07 am

Re: Perturbation theory

Postby jpfeifer » Fri Oct 31, 2014 11:08 am

Indeterminacy is a feature resulting from a particular solution. A unit root is part of the solution and thus cannot be caused by "indeterminacy". It could only be the other way round. The unit root means that at least one of your variables has a stochastic trend and will show permanent IRFs that do not go back to 0 even if irf=1000.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests

cron