jmaih / RISE_toolbox

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

Parameters must have same value in both states #151

Closed VanessaKunzmann closed 2 years ago

VanessaKunzmann commented 3 years ago

I am working on a regime switching DSGE model and face the problem that my model only solves whenever I give the policy parameters the same value in both states/regimes. Thereby it does not matter what values as long as they are the same.

What could be the reason for this? Thank you very much!

jmaih commented 3 years ago

Hi,

It could be anything including the structure of the transition probabilities.

It is impossible for me to tell you what the problem is without seeing the model.

Cheers

Sendt fra min iPhone

  1. des. 2020 kl. 16:13 skrev VanessaKunzmann notifications@github.com:

 I am working on a regime switching DSGE model and face the problem that my model only solves whenever I give the policy parameters the same value in both states/regimes. Thereby it does not matter what values as long as they are the same.

What could be the reason for this? Thank you very much!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

VanessaKunzmann commented 3 years ago

Hi, thanks for the quick response. Attached is my Model. I am working on a Two Country DSGE Model with Fiscal Regime Switching in both countries. The model has a similar setup as in Rabanal (2009). Rab_open2states.zip

I would really appreciate if you can find anything that causes this problem. Thank you in advance!

jmaih commented 3 years ago

What should I run to replicate the problem you are having?

On Thu, Dec 3, 2020 at 9:58 AM VanessaKunzmann notifications@github.com wrote:

Hi, thanks for the quick response. Attached is my Model. I am working on a Two Country DSGE Model with Fiscal Regime Switching in both countries. The model has a similar setup as in Rabanal (2009). Rab_open2states.zip https://github.com/jmaih/RISE_toolbox/files/5634736/Rab_open2states.zip

I would really appreciate if you can find anything that causes this problem. Thank you in advance!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jmaih/RISE_toolbox/issues/151#issuecomment-737762215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATKBTYOYP7OH2CT4RCS7PTSS5HKZANCNFSM4UJFDWDA .

VanessaKunzmann commented 3 years ago

If you run run2states.m it is currently running through because all policy coefficients have the same values in each state (but I need different coefficients in each state) but as soon as I change just one number it is not working any more.

line 203-208: This is working: phi_b(a,1),-0.0122; phi_b(a,2),-0.0122; phi_g(a,1), 0.5172; phi_g(a,2), 0.5172; phi_y(a,1), 0.2025; phi_y(a,2), 0.2025;

This is not: phi_b(a,1),-0.0122; phi_b(a,2),-0.0122; phi_g(a,1), 0.5172; phi_g(a,2), 0.5172; phi_y(a,1), 0.2025; phi_y(a,2), 0.2026; <-- just one integer differs

Is this understandable?

jmaih commented 2 years ago

Please reopen this issue if it still a problem