Commit 635aa656 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'ident_plot_bug' into 'master'

identification_analysis.m: Fix bug introduced in 60d95b65

See merge request Dynare/dynare!1637
parents 7cbd3ecb b615d2d7
...@@ -124,20 +124,20 @@ if info(1)==0 ...@@ -124,20 +124,20 @@ if info(1)==0
ide_strength_J_prior=NaN(1,nparam); ide_strength_J_prior=NaN(1,nparam);
if init if init
ide_uncert_unnormaliz = NaN(1,nparam); ide_uncert_unnormaliz = NaN(1,nparam);
offset=0;
if prior_exist if prior_exist
offset_prior=0;
if ~isempty(estim_params_.var_exo) if ~isempty(estim_params_.var_exo)
normaliz_prior_std = bayestopt_.p2(1:estim_params_.nvx)'; % normalize with prior standard deviation normaliz_prior_std = bayestopt_.p2(1:estim_params_.nvx)'; % normalize with prior standard deviation
offset=offset+estim_params_.nvx+estim_params_.nvn; offset_prior=offset_prior+estim_params_.nvx+estim_params_.nvn;
else else
normaliz_prior_std=[]; normaliz_prior_std=[];
end end
if ~isempty(estim_params_.corrx) if ~isempty(estim_params_.corrx)
normaliz_prior_std = [normaliz_prior_std bayestopt_.p2(offset+1:offset+estim_params_.ncx)']; % normalize with prior standard deviation normaliz_prior_std = [normaliz_prior_std bayestopt_.p2(offset_prior+1:offset_prior+estim_params_.ncx)']; % normalize with prior standard deviation
offset=offset+estim_params_.ncx+estim_params_.ncn; offset_prior=offset_prior+estim_params_.ncx+estim_params_.ncn;
end end
if ~isempty(estim_params_.param_vals) if ~isempty(estim_params_.param_vals)
normaliz_prior_std = [normaliz_prior_std bayestopt_.p2(offset+1:offset+estim_params_.np)']; % normalize with prior standard deviation normaliz_prior_std = [normaliz_prior_std bayestopt_.p2(offset_prior+1:offset_prior+estim_params_.np)']; % normalize with prior standard deviation
end end
% normaliz = max([normaliz; normaliz1]); % normaliz = max([normaliz; normaliz1]);
% normaliz1(isinf(normaliz1)) = 1; % normaliz1(isinf(normaliz1)) = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment