# How to match data with a log-linearized RBC model?

**URL:** <https://forum.dynare.org/t/how-to-match-data-with-a-log-linearized-rbc-model/12969>\
**Category:** General DSGE Modeling\
**Created:** [16 December 2018 17:56 UTC](https://forum.dynare.org/t/how-to-match-data-with-a-log-linearized-rbc-model/12969 "2018-12-16T17:56:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anoldmaninthesea](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Anoldmaninthesea](https://forum.dynare.org/u/Anoldmaninthesea)\
**Post date:** [16 December 2018 17:56 UTC](https://forum.dynare.org/t/how-to-match-data-with-a-log-linearized-rbc-model/12969/1 "2018-12-16T17:56:26Z")

</div>

Let us consider a RBC model like the one in Ireland’s A Method For Taking Models To The Data. We’ve taken the data Y\_t(it’s a vector. I’ll be using a different and more simplified notation), and written the State-Space Model (SSM) representation with respect to \hat{y}\_t (log-deviations from steady-state) after a log-linearization:

\begin{align\*} s\_{t+1}&=P(\theta)s\_t+ \epsilon\_{t+1}\\ \hat{y}\_{t+1}&=M(\theta)s\_t+ \eta\_{t+1} \end{align\*}

However, for each i-th component of \hat{y}\_{t}, we have \hat{y}\_{it}=\log(Y\_{it})-t\log(f\_i(\theta))-\log(y\_i^\*(\theta)), where y\_i^\*(\theta) is the steady-state of the i-th component which is also a function of the model’s vector of parameters \theta. The term t\log(f(\theta)) is present for detrending purposes.

I’m having doubts on how to link the observable data with the SSM, so that we can estimate the steady states and the parameters from the data alone…

Are we supposed to rewrite (with a slight abuse of notation in the term \log(Y\_{t+1})) the SSM into

\begin{align\*} s\_{t+1}&=P(\theta)s\_t+ \epsilon\_{t+1}\\ \log(Y\_{t+1})&=A(\theta)+M(\theta)s\_t+ \eta\_{t+1} \end{align\*} ?

A(\theta) is a vector, where each component is t\log(f\_i(\theta))+\log(y\_i^\*(\theta)).

---

<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:** [18 December 2018 14:14 UTC](https://forum.dynare.org/t/how-to-match-data-with-a-log-linearized-rbc-model/12969/2 "2018-12-18T14:14:55Z")

</div>

Please have a look at  
Pfeifer(2013): [“A Guide to Specifying Observation Equations for the Estimation of DSGE Models”](https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf)
