DSGE Model Problem - Steadystate

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.

DSGE Model Problem - Steadystate

Postby ofrank » Wed Feb 15, 2012 5:55 pm

Dear friends,

I'm looking for some help. The code is based on the work of Grith (2007): Monetary and Fiscal Policy in a Two Country Model with Sticky Prices. There is the following error message when I run the model: "In an assigment A(I) = B, the number of elements in B and I must be the same). It refers to the file "DSGE_Steadystate".

I would really appreciate if you guys could help.
Thanks a lot.

Regards,

Oscar
Attachments
DSGE_steadystate.m
(1.46 KiB) Downloaded 169 times
DSGE_data.m
(60.15 KiB) Downloaded 128 times
DSGE.mod
(30.37 KiB) Downloaded 162 times
ofrank
 
Posts: 5
Joined: Sat Apr 02, 2011 9:13 pm

Re: DSGE Model Problem - Steadystate

Postby jpfeifer » Tue Feb 21, 2012 9:03 pm

Your steady state file does not conform to any Dynare rules on how to supply steady state values. Search the forum on how to do this, look at the examples provided with Dynare and check
http://www.dynare.org/manual/index_20.html.
------------
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: DSGE Model Problem - Steadystate

Postby ofrank » Fri Feb 24, 2012 11:52 am

Dear jpfeifer and friends,

Jpfeifer, thanks for your response. I have substituted the "DSGE_steadystate" line for "steady(solve_algo=0)". It computes the steady state values of all variables. But, before the initial value of the posterior, there is another error. If use "mode_compute=5" (Marco Ratto's mode), the message is:

"Subscripted assigment dimension mismatch"

If I use "mode_compute = 1" (fmincon), the message is:

"FUN must return a non-empty objective function".

Can anybody else help me?

Thank you all.
ofrank
 
Posts: 5
Joined: Sat Apr 02, 2011 9:13 pm

Re: DSGE Model Problem - Steadystate

Postby ofrank » Sat Mar 03, 2012 10:35 pm

Hi all,

I still need help from the question I did above. Please, any response would be very useful.

Another question: when I use the "stoch_simul" command, I don't get any image with the response functions. What's the problem here?

Thank you very much.

Oscar
ofrank
 
Posts: 5
Joined: Sat Apr 02, 2011 9:13 pm

Re: DSGE Model Problem - Steadystate

Postby jpfeifer » Sun Mar 04, 2012 7:39 am

Could you post the new 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: DSGE Model Problem - Steadystate

Postby ofrank » Sun Mar 04, 2012 4:18 pm

Here it is, my friend.

In the file "DSGE_Stoch.mod", I don't get impulse response functions, while in "DSGE.mod" I still get problems with the estimation.

Thank you very much again.

Oscar
Attachments
DSGE.mod
(30.37 KiB) Downloaded 117 times
DSGE_stoch.mod
(30.37 KiB) Downloaded 102 times
ofrank
 
Posts: 5
Joined: Sat Apr 02, 2011 9:13 pm

Re: DSGE Model Problem - Steadystate

Postby jpfeifer » Wed Mar 07, 2012 10:07 pm

Your problem in both mod-files is the steady state, which cannot be found. You should put
Code: Select all
resid(1);

before
Code: Select all
steady;
check;

(Note that you got the order wrong.) It will show you which equations are not satisfied given the initial values (which are 0 if you use model(linear) without an initval block).
------------
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: DSGE Model Problem - Steadystate

Postby ofrank » Fri Mar 09, 2012 2:14 am

Dear freind,

Thank you very much for your response! I did some adjustments and now the program displays the impulse responses!

But I still get error messages when I try to estimate the parameters. I think this is due to the values of some of the eigenvalues, that are "Inf".

In this case, do you know how to proceed? How can I know which eigenvalue is associated with an specific forward looking variable?

Thanks a lot

Oscar
ofrank
 
Posts: 5
Joined: Sat Apr 02, 2011 9:13 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron