about the hp filter

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.

about the hp filter

Postby luckysinger » Fri Nov 13, 2009 4:14 pm

1

the direction is : stoch_simul(order=1,hp_filter=100, periods=2100);

however matlab give me it as follows when i run dynare a.mod

ERROR: stoch_simul: HP filter is not yet implemented when computing empirical simulations

??? Error using ==> dynare at 96
DYNARE: preprocessing failed

how to deal with this problem?

2
I am duplicating one model economy with dynare, I got exactly the same policy function, however the standard error of each variable is much bigger than the results in the book. Will the filter matter?

3
why do we need the filters in dynare if the model economy is just fluctuating near the steady state?
luckysinger
 
Posts: 5
Joined: Mon Sep 14, 2009 3:31 pm

Re: about the hp filter

Postby luckysinger » Sat Nov 14, 2009 2:56 am

another problem is that i found that we can not put periods=integ together with hp_filter=integ, can somebody tell me the reason?
luckysinger
 
Posts: 5
Joined: Mon Sep 14, 2009 3:31 pm

Re: about the hp filter

Postby otb » Sun Nov 15, 2009 10:46 pm

Luckysinger,

1. If you exclude the periods option, then Dynare provides theoretical moments of model variables for which the HP-filter can be applied. When the periods option is on, then the moments are simulated and the program does not have an option to yield HP-filtered data. (Although you could do this in a loop, by sending the simulated data to an HP-filter matlab code for repeated simulations)

2. If the policy functions are the same, then you're correct that the difference should be due to filtering.

3. Whether you should filter a model variable which already yields stationary results is open to debate. I think the general practice is that you should conduct the same transformations to the model variables as you do to the data.

otb
otb
 
Posts: 26
Joined: Mon Apr 07, 2008 4:47 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests