Error in Identification with 1 estimated parameter

Hi.
I estimated a model and I am doing some tests. One of them consisting in estimated just one parameter. However when I try to do the identification command, I received an error:

Error using bar (line 172)
X must be same length as Y.
Error in plot_identification (line 63)
bar(1:nparam,log([idehess.ide_strength_dMOMENTS(:,is)’
idehess.ide_strength_dMOMENTS_prior(:,is)']))
Error in dynare_identification (line
503)
plot_identification(params,
ide_moments_point, ide_hess_point,
ide_reducedform_point,
ide_dynamic_point,
options_ident.advanced, parameters,
name, IdentifDirectoryName,
parameters_TeX, name_tex);
Error in MBZHNH_XX.driver (line 456)
dynare_identification(options_ident);
Error in dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;

If I do the same with 2 or more parameters, identification runs well.
Would you help me to understand this error, please?

test.zip (78.5 KB)

Which version of Dynare are you using? We used to have a bug with one parameter but fixed it in 4.6. otherwise I will have a look at this after the holidays

Hi, professor Mutschler. I am using the 4.6.2 version.
Thanks for your attention.

This was fixed here

Could you update to 4.6.3 and report back whether your issue remains (I don’t have access to a Laptop to double check)?

Thanks, professor Mutschler.
First of all, I am sorry I did not realize that there is a new version (4.6.3), if so, I would updated it before asking some question.
However, I updated it and the error still persists. The message is almost the same:

Error using bar (line 172)
X must be same length as Y.

Error in plot_identification (line 63)
bar(1:nparam,log([idehess.ide_strength_dMOMENTS(:,is)’
idehess.ide_strength_dMOMENTS_prior(:,is)']))

Error in dynare_identification (line 503)
plot_identification(params,
ide_moments_point, ide_hess_point,
ide_reducedform_point,
ide_dynamic_point,
options_ident.advanced, parameters,
name, IdentifDirectoryName,
parameters_TeX, name_tex);

Error in MBZHNH_XX.driver (line 450)
dynare_identification(options_ident);

Error in dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;

If I understand it correctly, the fix that you sent me was already implemented in 4.6.2 version.
The only difference between these two error messages (4.6.2 and 4.6.3 versions) that I could see is:

Error in MBZHNH_XX.driver (line 450)

that in 4.6.2 version message is in line 456. But I believe the plot_identification function is the same (at least in the parts that are shown in the error message).

This is very strange, because I can run your file with Dynare 4.6.3. Are you sure there is no naming conflict somewhere on your system?

Professor Pfeifer, I tried to run it again in another computer (4.6.1 and Matlab 2020a) and it worked.
I could not figure it out why there is an issue with the computer that I was using before.

Do you have any idea what are the more common issues in naming conflict?

Thanks again

Usually it’s a problem with the Matlab path.