syntax shock_decomposition

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.

syntax shock_decomposition

Postby Thorsten » Wed May 19, 2010 4:58 pm

Hi all,

I am having trouble implementing the description in the Dynare manual for shock_decomposition. My shocks are named ea, eg etc. I thought I could use:

shock_decomposition(shocks=ea) y;

but I get the error message, which I really don't understand.

"Starting Dynare (version 4.1.1).
Starting preprocessing of the model file ...
ERROR: my_mod_file.mod:697.42-43: syntax error, unexpected NAME, expecting LABELS or PARAMETERS or SHOCKS"

Using the "labels" option works in principle, so I am really puzzled about how to map the manual syntax into code. I would appreciate any help - although in the worst case I would build my own plots on basis of oo_.shock_decomposition.

Best,
Thorsten
Thorsten
 
Posts: 9
Joined: Mon Sep 14, 2009 9:28 pm

Re: syntax shock_decomposition

Postby jpfeifer » Wed May 19, 2010 5:39 pm

Hi Thorsten,

could you please post the mod-file so one can replicate the error.
------------
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: syntax shock_decomposition

Postby Thorsten » Wed May 19, 2010 6:07 pm

Sure. Thanks for checking! I reproduced the same syntax problem in the baseline Smets-Wouters (2007, AER) model (see attached).

Thorsten
Attachments
usmodel_dynare_forum.zip
SW (2007, AER) updated with Dynare 4 steady state file
(22.17 KiB) Downloaded 713 times
Last edited by Thorsten on Sat May 22, 2010 7:40 am, edited 1 time in total.
Thorsten
 
Posts: 9
Joined: Mon Sep 14, 2009 9:28 pm

Re: syntax shock_decomposition

Postby jpfeifer » Thu May 20, 2010 6:02 am

Sorry, but the steady state file is missing.
------------
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: syntax shock_decomposition

Postby jpfeifer » Fri Jul 16, 2010 6:18 am

Hi,
unfortunately, the documentation of the syntax in the manual seems to be out of date. Try for example

Code: Select all
shock_decomposition y;


to get a shock decomposition for the variable y.
------------
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: syntax shock_decomposition

Postby SébastienVillemot » Thu Aug 19, 2010 2:19 pm

Thanks for noticing the error in the reference manual, this will be fixed.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: syntax shock_decomposition

Postby Pert » Fri Sep 10, 2010 11:46 am

I'm trying to make sense of what the new manual says on this (on the options)
The new manual says the options as parameters=..., shocks=..., labels =....

How does one actually implement these options and what do they do? I tried to implement these options but I am getting syntax-type of error messages, so I cannot see the output of what these options do. I wish the manual would say a little bit more, or with some example.

Any help please? Thank you very much. I am new to this, and for clarity, please explain like you are explaining to a second grader, you will not insult my intelligence :) thank you in advance guys.
Pert
 
Posts: 14
Joined: Thu Dec 03, 2009 8:54 am

Re: syntax shock_decomposition

Postby SébastienVillemot » Tue Sep 14, 2010 7:24 am

Hi,

Actually there was a mistake in the reference manual: no option is currently implemented to the “shock_decomposition” command. You can only specify a list of endogenous for which to compute the decomposition.

New options should be implemented in Dynare next major release 4.2.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: syntax shock_decomposition

Postby Pert » Tue Sep 14, 2010 2:38 pm

Ok Sebastien, thanks for clarifying. I spent a little time playing around with these options, I thought I was doing something wrong. Thanks for clarifying I was not in the wrong track.

Best.
Pert
 
Posts: 14
Joined: Thu Dec 03, 2009 8:54 am

Re: syntax shock_decomposition

Postby jpfeifer » Thu Apr 26, 2012 8:28 pm

For a version working in Dynare 4.2.5, see here: http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=3750
------------
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 5 guests

cron