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;