bandpass filter stoch_simul

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.

bandpass filter stoch_simul

Postby DW916 » Thu Oct 20, 2016 4:34 am

Dear Johannes,

If I use bandpass filtered data to do Bayesian estimation with 4.4.3 version dynare ( I know you do not recommend bandpass filter since it is two sided, but I have to try this now....), then I calibrate the model parameters with posterior means and to see theoretical moments, like unconditional variance decomposition and standard deviation... How should I write the stoch_simul demand? ( I mean that, if use hp-filter,then stoch_simul command should include hp_filter=1600, then How about bandpass filter?)

Just
Code: Select all
stoch_simul(order=1);
would be wrong?

Could you please give me some hint?

Many thanks in advance,
Catherine
DW916
 
Posts: 31
Joined: Sat Feb 27, 2016 9:05 am

Re: bandpass filter stoch_simul

Postby jpfeifer » Thu Oct 20, 2016 8:19 am

If you know what your are doing, estimating with bandpass-filtered data is ok.
Regarding generating bandpass-filtered theoretical moments from the stoch_simul-command: that is not possible with Dynare 4.4.3. In the unstable version, to be released as 4.5, you have a bandpass_filter option. See https://github.com/DynareTeam/dynare/blob/master/tests/moments/example1_bp_test.mod
------------
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: bandpass filter stoch_simul

Postby DW916 » Tue Nov 08, 2016 4:03 am

jpfeifer wrote:If you know what your are doing, estimating with bandpass-filtered data is ok.
Regarding generating bandpass-filtered theoretical moments from the stoch_simul-command: that is not possible with Dynare 4.4.3. In the unstable version, to be released as 4.5, you have a bandpass_filter option. See https://github.com/DynareTeam/dynare/blob/master/tests/moments/example1_bp_test.mod


Many thanks Johannes. I have tried to use unstable version with bandpass_filter option and got the bandpass filtered unconditional variance decomposition.
Code: Select all
stoch_simul(order=1,irf=0,bandpass_filter=[6 32], conditional_variance_decomposition=[1,4,8,16,24])
. However , it seems that dynare does NOT report bandpass filterd conditional variance decomposition.

Could you please tell me how to see bandpass filtered conditional variance decomposition in the unstable version?

Kind regards,
Catherine
DW916
 
Posts: 31
Joined: Sat Feb 27, 2016 9:05 am

Re: bandpass filter stoch_simul

Postby jpfeifer » Tue Nov 08, 2016 9:17 am

Dear Catherine,
this functionality is not supported and I am not sure there is an easy way to get a theoretical filtered conditional variance decomposition (I have never seen anything like this). Dynare also does not provide this for the hp_filter option.
------------
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: Google [Bot] and 6 guests