# Identification in DSGE-VAR models when the number of variables in the DSGE model exceeds the number of variables in the VAR model

**URL:** <https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323>\
**Category:** DSGE-VAR\
**Created:** [20 January 2021 10:26 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323 "2021-01-20T10:26:08Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [20 January 2021 10:26 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/1 "2021-01-20T10:26:08Z")

</div>

Given a log-linearised DSGE model: Y^{dsge}\_t = M(\theta)Y^{dsge}\_{t-1} + G(\theta)e\_t and a corresponding VAR model Y^{var}\_t = A\_0 + Y^{var}\_{t-1} A\_1 + u\_t, identification of the VAR model as explained by Del Negro and Schorfheide’s paper is kindof a map between e\_t and u\_t (details ignored), like we do in BVARs.

But in their paper, Y^{dsge}\_t = [x\_t, \pi\_t, R\_t] has the same number of variables as Y^{var}\_t = [\Delta lnx\_t,\Delta lnp\_t, lnR\_t] . So the link between e\_t and u\_t can easily be seen.

In the example on [dynare wiki](https://git.dynare.org/Dynare/dynare/-/blob/master/tests/dsge-var/dsgevar_forward_calibrated_lambda.mod), however, Y^{dsge}\_t has 10 variables ( `var a g mc mrs n winf pie r rw y;`). And given, `varobs pie r rw y;`, I guess Y^{var}\_t has 4 variables. Maybe I am wrong here.

But if Y^{var}\_t = [`pie r rw y`]’, then some of the shocks in the DSGE model are kinda not directly related to the innovations in the VAR model. Here, for example, e\_t = `{e_a, e_g, e_lam, e_ms}` in the DSGE model and u\_t = {`u_pie, u_r, u_rw, u_y`} in the VAR model. Thus, if my Y^{var}\_t here is correct. I can link some of shocks, but not all, particularly `e_g`.

Or maybe one does not need to link all the shocks in the DSGE model to the innovations in the VAR model. Thus, after you link some of them that you are interested in, you can pick the rest arbitrarily so that they match the number of variables in the VAR model?

---

<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:** [21 January 2021 08:57 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/2 "2021-01-21T08:57:48Z")

</div>

Typically, your DSGE model implies a (potentially infinite order) VAR in the observables. You are considering that one, not the full DSGE model. You need as many observables as shocks.

---

<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:** [21 January 2021 12:43 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/3 "2021-01-21T12:43:22Z")

</div>

Many thanks for the reply prof. Pfeifer.

But the shocks need not be necessarily related to the observables, right?. For example, assuming we have monetary policy shock, productivity shock, and government spending shock. The observables can be, say, output, export, and exchange rate? Assuming these variables are in the model.

I also wanted to know if variables in the DSGE model and the VAR model are always the same. It seems to me not always.

In the command `varobs pie r rw y;`, for example, does the VAR contain only these 4 variables or all variables in the DSGE model?

---

<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:** [21 January 2021 14:37 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/4 "2021-01-21T14:37:06Z")

</div>

There is almost never a one to one mapping that one shocks is associated with a variable. The big question is always whether the observables are useful for recovering the shocks you are interested in.

All the variables of the VAR must be contained in the DSGE model. Apart from that, I don’t think there are big restrictions on what is observed (except from each shock affecting at least one variable in VAR so as to not have stochastic singularity)

---

<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:** [26 January 2021 16:31 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/5 "2021-01-26T16:31:31Z")

</div>

Hi prof. Pfeifer, may I kindly ask this question again.

You said before that ‘All the variables of the VAR must be contained in the DSGE model’. I read the papers by Stéphane Adjemian et.al and Del Negro and Schorfheide [2004], but it appears in both papers that the number of variables in the DSGE is the same as the number of variables in the VAR.

In dynare, is there a way to have fewer variables in the VAR model less than variables in the DSGE model? Thanks

Sorry for asking again.

---

<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:** [26 January 2021 17:21 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/6 "2021-01-26T17:21:37Z")

</div>

Del Negro/Schorfheide (2004) have three variables in their VAR. Their DSGE model has more of them. Have a look at their equation (15). There is more on the right-hand side.

---

<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:** [27 January 2021 00:58 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/7 "2021-01-27T00:58:24Z")

</div>

Oh Yeah, I see that now. Many thanks. So the variables declared in the `varobs` command determines the structure of the VAR. For example if we have two observed variables like `varobs yobs xobs`, then the VAR here is bivariate, right?

---

<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:** [27 January 2021 07:49 UTC](https://forum.dynare.org/t/identification-in-dsge-var-models-when-the-number-of-variables-in-the-dsge-model-exceeds-the-number-of-variables-in-the-var-model/17323/8 "2021-01-27T07:49:10Z")

</div>

Yes, exactly. It’s a VAR in the observables.
