Le dimanche 10 mars 2013 à 10:42 +0100, Johannes Pfeifer a écrit :
currently Dynare substitutes exogenous lags and leads and adds equations. In the attached mod-file (ignore the complex parameter values which are the true problem for now), there are 12 endogenous variables. The preprocessor now says “Substitution of exo leads: added 3 auxiliary variables and equations.”
Running model_diagnostics delivers:
[...]
But originally, there are only 12 equations. Is there a certain rule where the auxiliary equations are included? Are they simply appended at the end so that I know to focus on equation 8 in this case? And how can I tell to which original exogenous variable equation 14 refers to?
The Dynare preprocessor appends the new equations after the ones provided by the user. The easy way to see what they contain is to use the `write_latex_{static,dynamic}_model' commands. This will also reveal the match between auxiliary variables and what they replace.
If there is no easy answer to those two questions, I would suggest to
add the name of the original substituted variable as a
field in M_.aux_vars, which together with the type stored there should be sufficient for full identification.
This is already done for lagged variables, but this is not possible for lead variables, because an auxiliary variable can correspond to a more complex expression that a simple variable. Think of E_t(x_{t+2}*y_{t +2}), which can only be replaced by a single variable (because of the expectancy operator).
Add the information about where the equations are appended
to the Wiki (http://www.dynare.org/DynareWiki/AuxiliaryVariables)
I added the information about writing LaTeX files on the wiki. If you feel this is not enough, feel free to open an issue with ideas on how to improve the current situation.
Moreover, regarding the Wiki: could it be that there is a typo and it should be “Aux var for endogenous with lag >= 1” instead of >=2 (and the same for endogenous leads)?
There was indeed a typo, but for exogenous variables. Now fixed, thanks.