Set options_.nobs if the new data interface is used.
parent
5b08223820
commit
afb5be2067
|
@ -452,7 +452,12 @@ k = find(isnan(bayestopt_.jscale));
|
|||
bayestopt_.jscale(k) = options_.mh_jscale;
|
||||
|
||||
% Build the dataset
|
||||
[dataset_, dataset_info] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);
|
||||
[dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);
|
||||
|
||||
% Set options_.nobs if needed
|
||||
if newdatainterfaceflag
|
||||
options_.nobs = dataset_.nobs;
|
||||
end
|
||||
|
||||
% setting steadystate_check_flag option
|
||||
if options_.diffuse_filter
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function [DynareDataset, DatasetInfo] = makedataset(DynareOptions, initialconditions, gsa_flag)
|
||||
function [DynareDataset, DatasetInfo, newdatainterface] = makedataset(DynareOptions, initialconditions, gsa_flag)
|
||||
|
||||
% Initialize a dataset as a dseries object.
|
||||
%
|
||||
|
|
Loading…
Reference in New Issue