Equations for expectation variables in the .mod file of a model
At this stage equations for the PV variables are created by var_expectation(varexp)
or pac_expectation(pacman)
which can be found then in the generated .inc files.
It is preferable to have them appear directly in the .mod file of the model. Here is one way of doing it. Say we cherrypick a pac equation from an estimation file. Then the generated simulation file used afterward to aggregate a big model shall automatically include an equation for expectation variable used in this pac equation.