jmaih / RISE_toolbox

Solution and estimation of Markov Switching Rational Expectations / DSGE Models
BSD 3-Clause "New" or "Revised" License
105 stars 78 forks source link

Algorithms for DSGE with threshold switching #174

Closed ezhao90 closed 1 year ago

ezhao90 commented 2 years ago

Dear Junior Maih,

I hope everything is doing well. My name is Erick, and I am currently working on a DSGE model with asymmetric information. A few months ago, I found your paper "Origins of Monetary Policy Shifts", which gave me the idea of taking a regime-switching approach in which the type is basically a latent AR(1) process and the regimes are defined as this factor crossing a given threshold.

I really like the approach you and your co-author used, so I wanted to kindly ask you if there is any place where I can find the replication files of this paper or if maybe you can share with me the p-coded files that implement the endogenous Kalman Filter and the TaRB-MH.

I know is a lot to ask for, but I would really appreciate any help you can give me. In case this is not possible, is there any way in which I can, at least, interface Dynare's posterior_sampler in RISE (which already implements the TaRB-MH)?

Thank you in advanced for any help!

Best regards. Erick

jmaih commented 2 years ago

Hi Erick,

Thank you for your interest in our paper. I believe the replication material is posted on the website of the journal in which the paper was published. Please take a look and let me know if this is not the case.

I have not yet implemented the Tailored Randomized Block Metropolis Hastings in RISE. But RISE allows you to use your own algorithms as long as the inputs and outputs are required by RISE.

check the help for rise/pull_objective

The call to the function is [ff,lb,ub,x0,vcov,obj]=pull_objective(obj,varargin)

Args: obj (rise | dsge | svar | rfvar): initial model object varargin (pairwise additional inputs): usual RISE arguments

Returns: :

Cheers,

J.

On Wed, Oct 5, 2022 at 6:43 PM ezhao90 @.***> wrote:

Dear Junior Maih,

I hope everything is doing well. My name is Erick, and I am currently working on a DSGE model with asymmetric information. A few months ago, I found your paper "Origins of Monetary Policy Shifts", which gave me the idea of taking a regime-switching approach in which the type is basically a latent AR(1) process and the regimes are defined as this factor crossing a given threshold.

I really like the approach you and your co-author used, so I wanted to kindly ask you if there is any place where I can find the replication files of this paper or if maybe you can share with me the p-coded files that implement the endogenous Kalman Filter and the TaRB-MH.

I know is a lot to ask for, but I would really appreciate any help you can give me. In case this is not possible, is there any way in which I can, at least, interface Dynare's posterior_sampler in RISE (which already implements the TaRB-MH)?

Thank you in advanced for any help!

Best regards. Erick

— Reply to this email directly, view it on GitHub https://github.com/jmaih/RISE_toolbox/issues/174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATKBTZR2NPYKEYIVQYWD4TWBWV3VANCNFSM6AAAAAAQ5XEB3E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ezhao90 commented 2 years ago

Hi Junior,

Thank you very much for your answer. I took a look at the journal's website and could only find the Online Appendix as Supplementary Material for your paper.

I will follow your recommendation and see how it goes with trying to implement a user-defined algorithm.

Thank you once again, Erick

Zhanwenqing commented 4 months ago

Hi Erick,I'm also looking for the code of paper "Origins of Monetary Policy Shifts".Have you got the code?would you mind send me the code ,thnx!!!