# Identification Analysis Error

**URL:** <https://forum.dynare.org/t/identification-analysis-error/3945>\
**Category:** Dynare help (legacy posts)\
**Created:** [3 June 2014 09:39 UTC](https://forum.dynare.org/t/identification-analysis-error/3945 "2014-06-03T09:39:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![francescosat](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/3be4f8/32.png) [@francescosat](https://forum.dynare.org/u/francescosat)\
**Post date:** [3 June 2014 09:39 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/1 "2014-06-03T09:39:31Z")

</div>

A suggested in Dynare reference manual I am trying to trigger an identification analysis in a Bayesian estimation environment.

[quote]For example, the placing identification; dynare\_sensitivity(identification=1,  
morris=2); in the Dynare model file trigger identification analysis[/quote]

WHat I get is this error:

[code]Testing current parameter values  
??? Attempted to access x(1,13); index out of bounds because size(x)=[1,12].

Error in ==\> hms\_est19\_dynamic at 42  
T159 = y(19)-T15\*y(21)-y(25)\*params(35)/params(32)-x(it\_, 13)\*params(30)/params(32);

Error in ==\> identification\_analysis at 77  
[residual, g1] = feval([M\_.fname,’\_dynamic’],yy0, …

Error in ==\> dynare\_identification at 280  
[idehess\_point, idemoments\_point, idemodel\_point, idelre\_point, derivatives\_info\_point, info] =  
…

Error in ==\> hms\_est19 at 624  
dynare\_identification(options\_ident);

Error in ==\> dynare at 180  
evalin(‘base’,fname) ;[/code]

I am writing the command right before the estimation command:

[code]estimated\_params;  
…

end;

identification;  
dynare\_sensitivity(identification=1, morris=2);

estimation(datafile…)

[/code]

Maybe I am just putting the command in the wrong position.

Thank you in advance.

---

<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:** [3 June 2014 12:37 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/2 "2014-06-03T12:37:32Z")

</div>

Please post or send the mod-file.

---

<div class="post-metadata">

**Author:** ![francescosat](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/3be4f8/32.png) [@francescosat](https://forum.dynare.org/u/francescosat)\
**Post date:** [3 June 2014 13:54 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/3 "2014-06-03T13:54:53Z")

</div>

Thank you, just sent.

---

<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:** [3 June 2014 17:22 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/4 "2014-06-03T17:22:23Z")

</div>

Identification is not compatible with

```auto

```

Why do you need this?

---

<div class="post-metadata">

**Author:** ![francescosat](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/3be4f8/32.png) [@francescosat](https://forum.dynare.org/u/francescosat)\
**Post date:** [4 June 2014 08:28 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/5 "2014-06-04T08:28:32Z")

</div>

I wrote this code: (varexo\_det=g) at the very beginning of my use of dynare. I thought it was the way to set non-stochastic exogenous variables in the model. In particular g is the exogenous government expenditure and is exogenous and costant over time (e.g 0.4) in the model. However I cannot use it as a parameter since it enters in the model as a variable.

Can you suggest me the proper way of setting exogenous, constant variable in a linearized model? If I put the variables between exogenous I end up with a stochastic variable and is not what I need. What I need, in my understanding, is a deterministic exogenous variable this is why I used that command.

Thank you once 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:** [4 June 2014 16:41 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/6 "2014-06-04T16:41:03Z")

</div>

I am not sure I understand the point. If it is constant (no time index), it is a parameter, not a variable. Just declare

`parameters g,gf;
g=0.4; gf=0.4;
`  
and your code should run. Unfortunately, identification does not support estimated correlations unless explicitly specified via e.g. a common shock.

---

<div class="post-metadata">

**Author:** ![francescosat](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/3be4f8/32.png) [@francescosat](https://forum.dynare.org/u/francescosat)\
**Post date:** [4 June 2014 18:18 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/7 "2014-06-04T18:18:13Z")

</div>

Unfortunately it is a variable but exogenous, in the sense that the specified value of public consumption does not come from an optimization since government is not in the model. Households and firms just take the exogenous g value, that could change, but like in deterministic simulation my idea was to give it a certain value (costant) for t that goes from 0 to inifinity.

Since as far I understand this is not possible in a estimation environment, I guess the best choice would be to threat the variable like we normally do with technology stochastic process.

`g=rhog*g(-1) + eg or g=rhog*g(-1) +(1-rhog)*g_ss + eg` wheire g\_ss is the steady state value, in my case equal to 0.40.

Do you think this would make sense? Both option gives me good identification results but the second gives me (strange) different from zero steady states results.

I know I am asking a lot… so feel free to let me alone in this puzzling situation.

best

---

<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:** [6 June 2014 14:51 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/8 "2014-06-06T14:51:59Z")

</div>

I see. I understood that g is invariant over time. But you are saying it is a deterministic trend.  
How about this: If you are not estimating any parameters associated with g (purely exogenous) you can take the identification results for your model with g set as a parameter. It won’t change any results in a meaningful way. Of course for estimation/simulation, it matters that g is an exogenous determinstic variable, but here you won’t need to run identification.

---

<div class="post-metadata">

**Author:** ![francescosat](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/3be4f8/32.png) [@francescosat](https://forum.dynare.org/u/francescosat)\
**Post date:** [7 June 2014 14:34 UTC](https://forum.dynare.org/t/identification-analysis-error/3945/9 "2014-06-07T14:34:29Z")

</div>

Perfect, thank you very much, again.
