Fixed gsa (dataset_ is now a dseries object).
parent
880bb58aef
commit
8691304b9f
|
@ -84,7 +84,7 @@ if ~isempty(options_gsa.datafile) || isempty(bayestopt_) || options_gsa.rmse,
|
|||
options_.mode_compute = 0;
|
||||
options_.filtered_vars = 1;
|
||||
options_.plot_priors = 0;
|
||||
[dataset_,xparam1,hh, M_, options_, oo_, estim_params_,bayestopt_]=dynare_estimation_init(M_.endo_names,fname_,1, M_, options_, oo_, estim_params_, bayestopt_);
|
||||
[dataset_,dataset_info,xparam1,hh, M_, options_, oo_, estim_params_,bayestopt_]=dynare_estimation_init(M_.endo_names,fname_,1, M_, options_, oo_, estim_params_, bayestopt_);
|
||||
% computes a first linear solution to set up various variables
|
||||
else
|
||||
if isempty(options_.qz_criterium)
|
||||
|
@ -343,7 +343,7 @@ if options_gsa.rmse,
|
|||
end
|
||||
|
||||
end
|
||||
prior_posterior_statistics('gsa',dataset_);
|
||||
prior_posterior_statistics('gsa',dataset_, dataset_info);
|
||||
if options_.bayesian_irf
|
||||
PosteriorIRF('gsa');
|
||||
end
|
||||
|
@ -366,7 +366,7 @@ if options_gsa.rmse,
|
|||
end
|
||||
clear a;
|
||||
% filt_mc_(OutputDirectoryName,data_info);
|
||||
filt_mc_(OutputDirectoryName,options_gsa,dataset_);
|
||||
filt_mc_(OutputDirectoryName,options_gsa,dataset_,dataset_info);
|
||||
end
|
||||
options_.opt_gsa = options_gsa;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function [rmse_MC, ixx] = filt_mc_(OutDir,options_gsa_,dataset_)
|
||||
function [rmse_MC, ixx] = filt_mc_(OutDir,options_gsa_,dataset_,dataset_info)
|
||||
% function [rmse_MC, ixx] = filt_mc_(OutDir)
|
||||
% inputs (from opt_gsa structure)
|
||||
% vvarvecm = options_gsa_.var_rmse;
|
||||
|
@ -121,9 +121,9 @@ if ~loadSA,
|
|||
end
|
||||
% eval(options_.datafile)
|
||||
Y = dataset_.data;
|
||||
gend = dataset_.info.ntobs;
|
||||
data_index = dataset_.missing.aindex;
|
||||
missing_value = dataset_.missing.state;
|
||||
gend = dataset_.nobs;
|
||||
data_index = dataset_info.missing.aindex;
|
||||
missing_value = dataset_info.missing.state;
|
||||
for jx=1:gend, data_indx(jx,data_index{jx})=true; end
|
||||
%stock_gend=data_info.gend;
|
||||
%stock_data = data_info.data;
|
||||
|
|
Loading…
Reference in New Issue