# Asking for help:DSGE model

**URL:** <https://forum.dynare.org/t/asking-for-help-dsge-model/17222>\
**Category:** ML/Bayesian estimation\
**Created:** [1 January 2021 16:10 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222 "2021-01-01T16:10:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorratu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@dorratu](https://forum.dynare.org/u/dorratu)\
**Post date:** [1 January 2021 16:10 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222/1 "2021-01-01T16:10:45Z")

</div>

Dear all,  
I am a Phd student in economics working on monetary policy using the DSGE model.

There are several points we don’t quite understand regarding the dsge model, I’d be very grateful if someone can help me:

- Is it possible to use annual data to estimate a DSGE model with Bayesian technique? If not, can you recommend an interpolation method to convert annual data to quarterly frequency!

-Can you offer me an example (code dynare/matlab) for plotting an efficiency frontier! knowing that I used OSR to compute the optimal simple rule for given a value of the objective function weight.

---

<div class="post-metadata">

**Author:** ![kofiemma](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/439d5e/32.png) [@kofiemma](https://forum.dynare.org/u/kofiemma)\
**Post date:** [2 January 2021 08:29 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222/2 "2021-01-02T08:29:54Z")

</div>

Sure you can use annual data, but that will affect some parameters like \beta. I mean like \beta is kinda different for annual data and quarterly data. So yeah, you may need to make some adjustments in the model and in dynare also.

---

<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:** [2 January 2021 08:35 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222/3 "2021-01-02T08:35:14Z")

</div>

1. Indeed there is no problem with using annual data. But the devil is in the details. Do you want to use annual data to estimate a quarterly model? And is all data annual or do you want to use mixed frequency?
2. For the efficiency frontier, see

> [@Policy frontier](https://forum.dynare.org/t/policy-frontier/5910/6):
>
> Starting with the unstable version of 12/18/2016 (Dynare 4.5), the following code should work for your mod-file % make loop silent options\_.nofunctions=1; options\_.nocorr=1; options\_.noprint=1; options\_.irf=0; options\_.silent\_optimizer=1; options\_.osr.opt\_algo=9; % find position of variables in variable\_weights y\_pos=strmatch('y\_hat',M\_.endo\_names,'exact'); pi\_pos=strmatch('pi\_hat',M\_.endo\_names,'exact'); % find position of variables in var\_list\_ y\_pos\_var\_list\_=strmatch('y\_hat',var\_list\_,'e…

---

<div class="post-metadata">

**Author:** ![dorratu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@dorratu](https://forum.dynare.org/u/dorratu)\
**Post date:** [2 January 2021 14:04 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222/4 "2021-01-02T14:04:28Z")

</div>

Dear j.pfeifer,  
thank you for your response.  
For the Bayesian estimate, I collected a quarterly database except that there are two variables that do not exist on a quarterly basis. So, I have to interpolate these two variables or I have to use an annual data for all the variables of the model.

---

<div class="post-metadata">

**Author:** ![dorratu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@dorratu](https://forum.dynare.org/u/dorratu)\
**Post date:** [2 January 2021 22:16 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222/5 "2021-01-02T22:16:27Z")

</div>

Dear,  
thank you for your response.

---

<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:** [3 January 2021 08:25 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222/6 "2021-01-03T08:25:30Z")

</div>

You can also do mixed frequency estimation. See e.g. [Pfeifer(2013): “A Guide to Specifying Observation Equations for the Estimation of DSGE Models”](https://drive.google.com/file/d/1r89OU5OE3CBa6tOlj6l3hNVWEaRH5Anv/view?usp=sharing) where you can find an example.

---

<div class="post-metadata">

**Author:** ![dorratu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@dorratu](https://forum.dynare.org/u/dorratu)\
**Post date:** [3 January 2021 21:08 UTC](https://forum.dynare.org/t/asking-for-help-dsge-model/17222/7 "2021-01-03T21:08:32Z")

</div>

Dear,  
thank you for your response.
