From d31b2218ff6d303e5b3398d65113b0c322d183fc Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Tue, 10 May 2011 10:10:42 +0200 Subject: [PATCH] Added extended info for advanced identification analysis with Monte Carlo. --- matlab/dynare_identification.m | 57 +++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 12 deletions(-) diff --git a/matlab/dynare_identification.m b/matlab/dynare_identification.m index 35fdb0181..b97207c8d 100644 --- a/matlab/dynare_identification.m +++ b/matlab/dynare_identification.m @@ -290,6 +290,8 @@ if iload <=0, idemoments.Mco = zeros(SampleSize,nparam); idemodel.Mco = zeros(SampleSize,nparam); idelre.Mco = zeros(SampleSize,np); + idemoments.S = zeros(SampleSize,min(8,nparam)); + idemoments.V = zeros(SampleSize,nparam,min(8,nparam)); delete([IdentifDirectoryName '/' M_.fname '_identif_*.mat']) end if info(1)==0, @@ -316,6 +318,8 @@ if iload <=0, idemoments.Mco(iteration,:)=ideJ.Mco; idemodel.Mco(iteration,:)=ideH.Mco; idelre.Mco(iteration,:)=ideGP.Mco; + idemoments.S(iteration,:)=ideJ.S; + idemoments.V(iteration,:,:)=ideJ.V; stoLRE(:,:,run_index) = ideGP.siLRE; stoH(:,:,run_index) = ideH.siH; stoJJ(:,:,run_index) = ideJ.siJ; @@ -407,19 +411,48 @@ if SampleSize > 1, plot_identification(pdraws,idemoments,idehess_point,idemodel,idelre,advanced,'MC sample - ',name, IdentifDirectoryName, 1); if advanced, jcrit=find(idemoments.ino); - for j=1:length(jcrit), - tittxt = ['Rank deficient draw n. ',int2str(j)]; - fprintf('\n') - disp(['Testing ',tittxt, '. Press ENTER']), pause, - if ~iload, - [idehess_(j), idemoments_(j), idemodel_(j), idelre_(j), derivatives_info_(j)] = ... - identification_analysis(pdraws(jcrit(j),:),indx,indexo,options_ident,data_info, prior_exist, name_tex,1); + if length(jcrit)