# Gathering Data and Replicating Gali (2008)

**URL:** <https://forum.dynare.org/t/gathering-data-and-replicating-gali-2008/17481>\
**Category:** General DSGE Modeling\
**Created:** [10 February 2021 18:10 UTC](https://forum.dynare.org/t/gathering-data-and-replicating-gali-2008/17481 "2021-02-10T18:10:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ercee](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/3d9bf3/32.png) [@ercee](https://forum.dynare.org/u/ercee)\
**Post date:** [10 February 2021 18:10 UTC](https://forum.dynare.org/t/gathering-data-and-replicating-gali-2008/17481/1 "2021-02-10T18:10:21Z")

</div>

Hello everyone,

I’m an undergraduate student, and I’m trying to replicate Gali (2008) chapter 3 ([DSGE\_mod/Gali\_2008\_chapter\_3.mod at master · JohannesPfeifer/DSGE\_mod · GitHub](https://github.com/JohannesPfeifer/DSGE_mod/blob/master/Gali_2008/Gali_2008_chapter_3.mod)) and estimate parameters. I believe to estimate posterior I need to gather data first.

Do I need data for each endogenous variable? In chapter 3 of Gali’s book, there are 12 model equations. The endogenous variables are inflation, output gap, natural output, output, natural interest rate, real interest rate, nominal interest rate, hours worked, real money stock, money growth annualized and technology parameter. Do I need to gather data for all these variables?

I know this is a simple question, but if so where I can find these values? (for example, is it possible to get data on a {a} (long\_name=‘AR(1) technology shock process’))

Thank you!

---

<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:** [10 February 2021 21:30 UTC](https://forum.dynare.org/t/gathering-data-and-replicating-gali-2008/17481/2 "2021-02-10T21:30:19Z")

</div>

1. What do you mean with replicate? Those models in the book were never estimated.
2. One previous comment of mine comes to mind:

> Bachelor students are not supposed to work on models that complicated without intense supervision. I have seen too many cases like this miserably fail. Most of the time, the goals set are too unrealistic given the prior training and the time frame envisioned.

If you want to go down that road of estimation without the proper training, be warned. You may want to start with [Pfeifer(2013): “A Guide to Specifying Observation Equations for the Estimation of DSGE Models”](https://drive.google.com/file/d/1r89OU5OE3CBa6tOlj6l3hNVWEaRH5Anv/view?usp=sharing)

Also :

> [@More shocks than observable variables -- what to do?](https://forum.dynare.org/t/more-shocks-than-observable-variables-what-to-do/1375/4):
>
> Dear Maureen, sorry, I forgot that Smets/Wouters do not have measurement error. Regarding your question: It clearly does not matter.The only condition is that you have at least as many disturbances as you have observed series as otherwise stochastic singularity would occur. That’s the reason why Smets/Wouters match the number of shocks to the number of variables. There is for example the Schmitt-Grohe/Uribe (2009)-paper “What’s news in business cycles?”. They have several exogenous disturbances…
