Skip to content
Snippets Groups Projects
Commit f64b76f0 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Johannes Pfeifer
Browse files

Move saving of data mean to data initialization instead of posterior computations

Makes it accessible for other functions that also need it
parent b235040a
Branches
Tags
No related merge requests found
......@@ -530,8 +530,12 @@ end
[dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);
% Set options_.nobs
bayestopt_.mean_varobs = dataset_info.descriptive.mean';
% Set options_.nobs if needed
if newdatainterfaceflag
options_.nobs = dataset_.nobs;
end
% setting steadystate_check_flag option
if options_.diffuse_filter
......
......@@ -44,7 +44,6 @@ Y = transpose(dataset.data);
gend = dataset.nobs;
data_index = dataset_info.missing.aindex;
missing_value = dataset_info.missing.state;
bayestopt_.mean_varobs = dataset_info.descriptive.mean';
nvx = estim_params_.nvx;
nvn = estim_params_.nvn;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment