# Identification analysis problem

**URL:** <https://forum.dynare.org/t/identification-analysis-problem/16385>\
**Category:** Estimation\
**Created:** [6 August 2020 15:05 UTC](https://forum.dynare.org/t/identification-analysis-problem/16385 "2020-08-06T15:05:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexSh](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@AlexSh](https://forum.dynare.org/u/AlexSh)\
**Post date:** [6 August 2020 15:05 UTC](https://forum.dynare.org/t/identification-analysis-problem/16385/1 "2020-08-06T15:05:37Z")

</div>

We are doing Bayesian estimation using Matlab R2019b and Dynare 4.6.1 versions. We use ‘identification’ command before ‘estimation’ command and get the error message. We also tried the command ‘identification(order=1)’, but it didn’t solve the issue. Why may that appear?

The error message is below. Thanks for your help!

Testing prior mean  
Error using get\_perturbation\_params\_derivs (line 531)  
For analytical parameter derivatives ‘dynamic\_params\_derivs.m’ file is needed, this can be created by putting identification(order=1) into your mod file.  
Error in get\_identification\_jacobians (line 153)  
oo.dr.derivs = get\_perturbation\_params\_derivs(M, options, estim\_params, oo, indpmodel, indpstderr, indpcorr, d2flag);  
Error in identification\_analysis (line 140)  
[MEAN, dMEAN, REDUCEDFORM, dREDUCEDFORM, DYNAMIC, dDYNAMIC, MOMENTS, dMOMENTS, dSPECTRUM, dSPECTRUM\_NO\_MEAN, dMINIMAL, derivatives\_info] = get\_identification\_jacobians(estim\_params\_, M\_, oo\_, options\_, options\_ident, indpmodel, indpstderr, indpcorr, indvobs);  
Error in dynare\_identification (line 461)  
identification\_analysis(params, indpmodel, indpstderr, indpcorr, options\_ident, dataset\_info, prior\_exist, 1); %the 1 at the end implies initialization of persistent variables  
Error in code\_all.driver (line 3398)  
dynare\_identification(options\_ident);  
Error in dynare (line 293)  
evalin(‘base’,[fname ‘.driver’]) ;  
Error in run\_all (line 435)  
dynare code\_all.mod

---

<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 August 2020 15:47 UTC](https://forum.dynare.org/t/identification-analysis-problem/16385/2 "2020-08-06T15:47:25Z")

</div>

Could you please provide me with the files to replicate the issue

---

<div class="post-metadata">

**Author:** ![wmutschl](https://forum.dynare.org/user_avatar/forum.dynare.org/wmutschl/32/18464_2.png) [@wmutschl](https://forum.dynare.org/u/wmutschl)\
**Post date:** [7 August 2020 14:15 UTC](https://forum.dynare.org/t/identification-analysis-problem/16385/3 "2020-08-07T14:15:07Z")

</div>

I put in this error message in case some files are not created by the preprocessor, so I’d be interested what triggered this for you. Are you using `bytecode` or `usedll` in your model block, as I did not really test this? Or are you running `dynare yourmodfile params_derivs_order=0`? Anyways, please sent us the files and we’ll look into this. As a workaround you can also of course use numerical derivatives, see the analytic\_derivation\_mode option.
