Identification Analysis Error

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Identification Analysis Error

Postby francis » Mon May 18, 2015 3:53 pm

Dear all,

I am estimating the standard deviations of two structural shocks and their correlation in a simple RBC model.
I am running identification analysis tests via the command

Code: Select all
identification;


and am getting two error messages.

1) When I run the .mod file and apply the identification test on the standard deviations only or on all paramaters
here is the error message that I get

Code: Select all
Error using  ./
Matrix dimensions must agree.

Error in identification_analysis (line 222)
        ide_strength_J_prior(indok) = (1./(normaliz(indok)'./normaliz1(indok)'));

Error in dynare_identification (line 280)
    [idehess_point, idemoments_point, idemodel_point, idelre_point, derivatives_info_point, info] = ...

Error in rbc_estim (line 219)
dynare_identification(options_ident);

Error in dynare (line 180)
evalin('base',fname) ;



2) If I run the identification test on the correlation between structural shocks only the reported error
message is

Code: Select all
Error using  .*
Matrix dimensions must agree.

Error in identification_analysis (line 224)
        deltaM_prior = deltaM.*abs(normaliz1');

Error in dynare_identification (line 280)
    [idehess_point, idemoments_point, idemodel_point, idelre_point, derivatives_info_point, info] = ...

Error in rbc_estim (line 218)
dynare_identification(options_ident);

Error in dynare (line 180)
evalin('base',fname) ;



The identification test works fine if it is applied to parameters not estimated via one of Dynares built-in
functions (as, in this case, stderr or corr). Help on the issue is greatly appreciated. I attach my .mod file.

Many thanks in advance,
Francis
Attachments
rbc_estim.mod
(2.18 KiB) Downloaded 70 times
francis
 
Posts: 23
Joined: Mon Jun 18, 2012 6:36 pm

Re: Identification Analysis Error

Postby jpfeifer » Tue May 19, 2015 7:01 am

------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Identification Analysis Error

Postby francis » Tue May 19, 2015 9:17 am

Thank you Mr. Pfeifer.

Could not find any forum threads concerning the first error which appears when including standard deviations. As far as I know the identification command should work for those.

Many thanks again!
francis
 
Posts: 23
Joined: Mon Jun 18, 2012 6:36 pm

Re: Identification Analysis Error

Postby jpfeifer » Tue May 19, 2015 9:22 am

It does not work for measurement errors. Standard errors should work. Please provide the file to replicate the issue.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Identification Analysis Error

Postby francis » Tue May 19, 2015 10:49 am

It is the file I attached above with the correlation commented out from the
estimation parameters. I attach the orginal file again with this modification.

Thanks!
Attachments
rbc_iden.mod
(2.18 KiB) Downloaded 77 times
francis
 
Posts: 23
Joined: Mon Jun 18, 2012 6:36 pm

Re: Identification Analysis Error

Postby jpfeifer » Sat May 23, 2015 10:35 am

This is a bug. Thanks for pointing it out. It comes from only testing the identification of exogenous variables' standard deviations. If you add
Code: Select all
sigma , 1,0, 5;

to the estimated_params-block, it works.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Identification Analysis Error

Postby francis » Sat May 23, 2015 11:23 pm

Good to know! Many thanks for your kind feedback.

Best,
Francis
francis
 
Posts: 23
Joined: Mon Jun 18, 2012 6:36 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests