Help with Dynare

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.

Help with Dynare

Postby xiongchen » Mon Oct 19, 2015 6:39 am

Dear all

I use Dynare to solve an open economy DSGE model. But, it always shows the fllowing



THEORETICAL MOMENTS

VARIABLE MEAN STD. DEV. VARIANCE
s 1.0000 0.7531 0.5672
rk NaN NaN NaN
w NaN NaN NaN
rd 1.0273 0.1651 0.0272
nfa NaN NaN NaN
k NaN NaN NaN
kbar NaN NaN NaN
u NaN NaN NaN
q NaN NaN NaN
h NaN NaN NaN
y NaN NaN NaN
c NaN NaN NaN
i NaN NaN NaN
psiz NaN NaN NaN
nu NaN NaN NaN
omegabar NaN NaN NaN
fd NaN NaN NaN
pbar 1.0000 0.0000 0.0000
fx NaN NaN NaN
pxbar 1.0000 0.0000 0.0000
fw NaN NaN NaN
wbar 1.0000 0.0000 0.0000
fmc NaN NaN NaN
fmi NaN NaN NaN
fmx NaN NaN NaN
pmcbar 1.0000 0.0000 0.0000
pmibar 1.0000 0.0000 0.0000
pmxbar 1.0000 0.0000 0.0000
pi 1.0070 0.1035 0.0107
pic 1.0070 0.1138 0.0129
pii 1.0070 0.1138 0.0129
pix 1.0070 0.1362 0.0186
pimc 1.0070 0.1838 0.0338
pimi 1.0070 0.1838 0.0338
pimx 1.0070 0.1838 0.0338
gammac NaN NaN NaN
gammai NaN NaN NaN
gammax NaN NaN NaN
gammamc NaN NaN NaN
gammami NaN NaN NaN
gammamx NaN NaN NaN
sbar NaN NaN NaN
ystar 1.3742 0.1587 0.0252
pistar 1.0070 0.1155 0.0133
rstar 0.6849 0.2861 0.0819
pitarget 1.0070 0.1163 0.0135
muz 1.0100 0.1166 0.0136
up 1.0000 0.1155 0.0133
zetac 1.0000 0.1155 0.0133
zetah 1.0000 0.1155 0.0133
g 1.0899 0.1258 0.0158
sigma 0.2318 0.0268 0.0007
zstar 1.0000 0.1155 0.0133
varepsilon 1.0000 0.1155 0.0133
xie 0.9544 0.1102 0.0121

All endogenous are constant or non stationary, not displaying correlations and auto-correlations



I can not find where is the problem. The steady state has been correctly solvesd. I need some help.Thanks
xiongchen
 
Posts: 7
Joined: Mon Oct 19, 2015 6:26 am

Re: Help with Dynare

Postby tmokbel1965 » Mon Oct 19, 2015 8:36 pm

Hmm, I am having a similar problem and can't figure out a solution. Any tips?
tmokbel1965
 
Posts: 1
Joined: Mon Oct 19, 2015 8:28 pm

Re: Help with Dynare

Postby jpfeifer » Tue Oct 20, 2015 1:02 pm

Please provide the mod-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: Help with Dynare

Postby xiongchen » Wed Oct 21, 2015 1:51 pm

jpfeifer wrote:Please provide the mod-files
Attachments
mysecond_steadystate_core.m
(2.14 KiB) Downloaded 49 times
mysecond_steadystate.m
(4.08 KiB) Downloaded 49 times
mysecond.mod
(19.31 KiB) Downloaded 58 times
xiongchen
 
Posts: 7
Joined: Mon Oct 19, 2015 6:26 am

Re: Help with Dynare

Postby jpfeifer » Fri Oct 23, 2015 6:12 am

Your model has a unit root. Thus, some of the unconditional moments you are trying to compute do not exists and are consequentially reported as NaN.
------------
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: Help with Dynare

Postby xiongchen » Fri Oct 23, 2015 6:30 am

jpfeifer wrote:Your model has a unit root. Thus, some of the unconditional moments you are trying to compute do not exists and are consequentially reported as NaN.

Thank you very much! But how can I solve the probem of unit root ? Hoping for your suggestion ! Thank you!
xiongchen
 
Posts: 7
Joined: Mon Oct 19, 2015 6:26 am

Re: Help with Dynare

Postby jpfeifer » Fri Oct 23, 2015 6:35 am

Check your model whether there is an economic reason for the unit root. If not, find the error in your equations. You can run
Code: Select all
model_diagnostics

to get more information and the source of the problem.
------------
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: Help with Dynare

Postby xiongchen » Fri Oct 23, 2015 6:39 am

jpfeifer wrote:Your model has a unit root. Thus, some of the unconditional moments you are trying to compute do not exists and are consequentially reported as NaN.

I have considered the stochastic trends in tecnology and the price, I am considering why there is still having a unit root in my model. Can you give me some more suggestions ? Tkank you very much!
xiongchen
 
Posts: 7
Joined: Mon Oct 19, 2015 6:26 am

Re: Help with Dynare

Postby xiongchen » Fri Oct 23, 2015 6:40 am

jpfeifer wrote:Check your model whether there is an economic reason for the unit root. If not, find the error in your equations. You can run
Code: Select all
model_diagnostics

to get more information and the source of the problem.

Thank you! I will have a try.
xiongchen
 
Posts: 7
Joined: Mon Oct 19, 2015 6:26 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 3 guests