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

endogenous prior: fix logic of missing observations check

Message should only be displayed if there are missing observations
parent b4f260aa
Branches
Tags
1 merge request!2153endogenous prior: fix logic of missing observations check
...@@ -532,6 +532,7 @@ end ...@@ -532,6 +532,7 @@ end
if ~isempty(dataset_) if ~isempty(dataset_)
options_.nobs = dataset_.nobs; options_.nobs = dataset_.nobs;
if options_.endogenous_prior if options_.endogenous_prior
if ~isnan(dataset_info.missing.number_of_observations) && ~(dataset_info.missing.number_of_observations==0) %missing observations present
if dataset_info.missing.no_more_missing_observations<dataset_.nobs-10 if dataset_info.missing.no_more_missing_observations<dataset_.nobs-10
fprintf('\ndynare_estimation_init: There are missing observations in the data.\n') fprintf('\ndynare_estimation_init: There are missing observations in the data.\n')
fprintf('dynare_estimation_init: I am computing the moments for the endogenous prior only\n') fprintf('dynare_estimation_init: I am computing the moments for the endogenous prior only\n')
...@@ -544,6 +545,7 @@ if ~isempty(dataset_) ...@@ -544,6 +545,7 @@ if ~isempty(dataset_)
end end
end end
end end
end
% setting steadystate_check_flag option % setting steadystate_check_flag option
if options_.diffuse_filter || options_.steadystate.nocheck if options_.diffuse_filter || options_.steadystate.nocheck
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment