# Calibrating/Estimating DSGE models for two time periods

**URL:** <https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489>\
**Category:** Dynare help (legacy posts)\
**Created:** [20 February 2015 02:47 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489 "2015-02-20T02:47:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![missredridinghood](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@missredridinghood](https://forum.dynare.org/u/missredridinghood)\
**Post date:** [20 February 2015 02:47 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/1 "2015-02-20T02:47:06Z")

</div>

Hello,

I was wondering if there is material on estimating DSGE models, whether it is RBC or New Keynesian for the before and after 1980 periods.

There were some papers that discussed results when the model was split up before time and how it fared in compared to data split in the same periods.

I have tried it before, but I wanted to read more into it.

Thanks.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [22 February 2015 18:57 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/2 "2015-02-22T18:57:57Z")

</div>

What exactly are you looking for? Regime-switching models that look at different active-passive monetary/fiscal policy combinations (what Eric Leeper does)? Looking at structural breaks in Taylor rules (e.g. Clarida/Gali/Gertler)? Or parameter drifts (e.g. Fernandez-Villaverde et al, Macroeconomics Annual)?

---

<div class="post-metadata">

**Author:** ![missredridinghood](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@missredridinghood](https://forum.dynare.org/u/missredridinghood)\
**Post date:** [15 March 2015 03:42 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/3 "2015-03-15T03:42:27Z")

</div>

I have made some attempts to simulate the model for the before and after 1980. What I did was have two separate calibrations for before and after 1980. I was wondering if that is the proper way to simulate the model.

Also, according to the manual, there is a way of dating your data. Can this be applied to models using calibration only, or is it strictly for estimation? The number of periods in stoch\_simul correspond to the number of periods before the model is in steady state.

If I want to look at the 1948Q1 to 1998Q4, then would I set the number of periods to be equal to 200 periods or I can set the number of periods to be as large as possible.

In the case of adding dummy variables to the model, I looked at the other posts but it does not appear clear to me how to do that. For instance, suppose I want to estimate shock: a = rhoa_a(-1) + rhob_b(-1) + epsilon and I want rhob = 0 if periods \< 100 and rho = 0.5 for periods \>100. How can this be done in Dynare.

Last question, if I want to do a Monte Carlo type of simulation or simulate the model 1000 times, can this be done in Dynare, if so, how can I do it?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [15 March 2015 17:58 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/4 "2015-03-15T17:58:37Z")

</div>

Sorry, but I don’t understand the exercise you are doing. You need to describe it in a more systematic way.

With stoch\_simul, there is no point in dating your data. You just have a bunch of artificial time periods after you start simulations.

For the dummy variables, see [[Using dummy variables in dynare](https://forum.dynare.org/t/using-dummy-variables-in-dynare/4539/1)). Essentially, you define rhoa and rhob as variables and provide an observed variable series that takes on the values you describe.

If you are talking about stoch\_simul, use the simul\_replic. However, you did not describe what the uncertainty is about you are trying to simulate.

---

<div class="post-metadata">

**Author:** ![KKLS](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@KKLS](https://forum.dynare.org/u/KKLS)\
**Post date:** [21 December 2016 18:09 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/5 "2016-12-21T18:09:35Z")

</div>

Hi to all and to Prof. Pfeifer,

I was interested in the estimating ta model with structural breaks in monetary policy. I read some posts.

Can estimation with structural breaks in deep parameters be done in dynare ?  
is there documentation for that ?

> [@](#):
>
> Re: Calibrating/Estimating DSGE models for two time periods  
> Post by jpfeifer » Sun Feb 22, 2015 6:57 pm
> 
> What exactly are you looking for? Regime-switching models that look at different active-passive monetary/fiscal policy combinations (what Eric Leeper does)? Looking at structural breaks in Taylor rules (e.g. Clarida/Gali/Gertler)? Or parameter drifts (e.g. Fernandez-Villaverde et al, Macroeconomics Annual)?

I read a bit on the link below but and googled further but no info came up.  
[dynare.org/DynareWiki/EstimationModule](http://www.dynare.org/DynareWiki/EstimationModule)  
Thanks for nay guidance yhat might come up!

---

<div class="post-metadata">

**Author:** ![KKLS](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@KKLS](https://forum.dynare.org/u/KKLS)\
**Post date:** [28 December 2016 12:23 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/6 "2016-12-28T12:23:22Z")

</div>

Hi I very much appreciate if someone can comment on my previous post,

The key question is if I can estimate a model with structural breaks in monetary policy parameters ?

ta

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [28 December 2016 18:53 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/7 "2016-12-28T18:53:56Z")

</div>

We are currently quite busy with preparations for Dynare 4.5. Therefore, estimation with breaks will have to wait for now as its implementation is rather involved, see [dynare.org/DynareWiki/SubsamplesEstimation](http://www.dynare.org/DynareWiki/SubsamplesEstimation).

---

<div class="post-metadata">

**Author:** ![KKLS](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@KKLS](https://forum.dynare.org/u/KKLS)\
**Post date:** [29 December 2016 10:30 UTC](https://forum.dynare.org/t/calibrating-estimating-dsge-models-for-two-time-periods/4489/8 "2016-12-29T10:30:32Z")

</div>

Thanks Prof. Pfeifer!
