From 3ca9485eddb8026fdffac2c81d2324ca5831894b Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Wed, 4 Apr 2012 10:35:18 +0200 Subject: [PATCH] bug fix when calling gsa set default order=1 set analytic derivation =1 --- matlab/dynare_identification.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/dynare_identification.m b/matlab/dynare_identification.m index b60ffec94..b9384bda9 100644 --- a/matlab/dynare_identification.m +++ b/matlab/dynare_identification.m @@ -61,7 +61,7 @@ options_ident = set_default_option(options_ident,'advanced',0); options_ident = set_default_option(options_ident,'normalize_jacobians',1); options_ident = set_default_option(options_ident,'lik_init',1); if options_ident.gsa_sample_file, - GSAFolder = checkpath('gsa'); + GSAFolder = checkpath('gsa',M_.dname); if options_ident.gsa_sample_file==1, load([GSAFolder,filesep,fname_,'_prior'],'lpmat','lpmat0','istable'); elseif options_ident.gsa_sample_file==2, @@ -105,11 +105,13 @@ nlags = options_ident.ar; periods = options_ident.periods; replic = options_ident.replic; useautocorr = options_ident.useautocorr; +options_.order=1; options_.ar=nlags; options_.prior_mc = options_ident.prior_mc; options_.options_ident = options_ident; options_.Schur_vec_tol = 1.e-8; options_.nomoments=0; +options_.analytic_derivation=1; options_ = set_default_option(options_,'datafile',[]); options_.mode_compute = 0;