# Multiple PAC equations and satellite VAR models in a single MOD file

**URL:** <https://forum.dynare.org/t/multiple-pac-equations-and-satellite-var-models-in-a-single-mod-file/21635>\
**Category:** Semistructural Modeling\
**Created:** [12 December 2022 06:44 UTC](https://forum.dynare.org/t/multiple-pac-equations-and-satellite-var-models-in-a-single-mod-file/21635 "2022-12-12T06:44:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sikang](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sikang](https://forum.dynare.org/u/sikang)\
**Post date:** [12 December 2022 06:44 UTC](https://forum.dynare.org/t/multiple-pac-equations-and-satellite-var-models-in-a-single-mod-file/21635/1 "2022-12-12T06:44:13Z")

</div>

Hi,

I am trying to aggregate each block of the semi-structural model, where each block is estimated separately.  
In each block, it contains a PAC equation and its associated satellite VAR model composed with core variable shared by every satellite VAR model and block-specific variables.  
After estimating PAC coefficients, I put all blocks into a single MOD file to solve the model and run simulation/forecast.  
[block\_agg.mod](https://forum.dynare.org/uploads/short-url/tM84W1grvuPOaTJmluuzB9edYGi.mod) (2.2 KB)

However, error comes up as follows…

ERROR: There are 16 equations but 14 endogenous variables!

This is inevitable because VARs share variables.

Does DYNARE currently not provide solving and running simulations/forecasts of the PAC type semi-structural model?

Best,  
Seokil

---

<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:** [13 December 2022 17:18 UTC](https://forum.dynare.org/t/multiple-pac-equations-and-satellite-var-models-in-a-single-mod-file/21635/2 "2022-12-13T17:18:15Z")

</div>

@stepan-a and @sebastien need to have a look.
