From 7c8878c071f15528d52bde83c40c8d60f459f921 Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Tue, 17 May 2016 08:41:16 +0200 Subject: [PATCH] Allow neighborhood_width sampling in Morris + bug fix. --- matlab/dynare_sensitivity.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/matlab/dynare_sensitivity.m b/matlab/dynare_sensitivity.m index 72ba7232e..849ce5cde 100644 --- a/matlab/dynare_sensitivity.m +++ b/matlab/dynare_sensitivity.m @@ -48,7 +48,7 @@ if isfield(options_gsa,'graph_format'), end if isfield(options_gsa,'mode_file'), options_.mode_file=options_gsa.mode_file; -elseif isfield(options_gsa,'neighborhood_width') && options_gsa_.neighborhood_width>0, +elseif isfield(options_gsa,'neighborhood_width') && options_gsa.neighborhood_width>0, options_.mode_file=''; end @@ -182,7 +182,11 @@ if options_gsa.morris==1, if ~options_gsa.identification, options_gsa.redform=1; end - options_gsa.pprior=1; + if options_gsa.neighborhood_width, + options_gsa.pprior=0; + else + options_gsa.pprior=1; + end options_gsa.ppost=0; %options_gsa.stab=1; options_gsa.glue=0;