shock_decomposition for a calibrated model

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.

shock_decomposition for a calibrated model

Postby alexisgrigorieff » Mon Jul 22, 2013 1:58 pm

Hey everybody,

I've just started using Dynare, and I run into a problem when I try to use shock_decomposition after having simulated data from the New Keynesian model. (I want to extract the structural shocks from the simulated data (with inflation and output as observables) using the Kalman smoother).

I tried the following code: (I've attached the whole .mod file too)
stoch_simul(periods=500, order=1, irf=0);
var_obs inflation output;
shock_decomposition(parameter_set=vector_parameters) inflation output;

But I get the following error:
Error using shock_decomposition (line 55)
shock_decomposition: option parameter_set is not
specified and posterior mode is not available

But I did save as a .mat file a vector of the parameters of the model, which I called vector_parameters.mat.

If anyone could help me with this problem, I'd be very grateful!

Thanks!

Alexis
Attachments
test_dynare_kalman.mod
dynare code
(1.09 KiB) Downloaded 60 times
alexisgrigorieff
 
Posts: 6
Joined: Mon Jul 22, 2013 11:58 am

Re: shock_decomposition for a calibrated model

Postby jpfeifer » Mon Jul 22, 2013 2:30 pm

Please provide the Dynare version you are using and the parameter vector file (upload a zip-file as mat-files are not allowed)
------------
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: shock_decomposition for a calibrated model

Postby alexisgrigorieff » Mon Jul 22, 2013 2:58 pm

Thanks for the very quick reply!

I have the version 4.3.3 of Dynare and I've attached the .zip file containing the .mat file.
Attachments
vector_parameters.zip
vector of parameters
(333 Bytes) Downloaded 62 times
alexisgrigorieff
 
Posts: 6
Joined: Mon Jul 22, 2013 11:58 am

Re: shock_decomposition for a calibrated model

Postby jpfeifer » Mon Jul 22, 2013 4:52 pm

Try the most recent snapshot with the attached file. There still is a bug in the snapshot so that options_.smoother must be set manually.
Attachments
test_dynare_kalman.mod
(997 Bytes) Downloaded 90 times
------------
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: shock_decomposition for a calibrated model

Postby alexisgrigorieff » Tue Jul 23, 2013 11:52 am

Thank you very much! It worked with the file you attached and with the most recent snapshot of the unstable version of Dynare.
alexisgrigorieff
 
Posts: 6
Joined: Mon Jul 22, 2013 11:58 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests