Skip to content
Snippets Groups Projects
Verified Commit a5d3836e authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

endogenous prior: fix logic of missing observations check

Message should only be displayed if there are missing observations

(cherry picked from commit a85a00bf)
parent 73364eda
No related merge requests found
...@@ -556,6 +556,7 @@ end ...@@ -556,6 +556,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')
...@@ -568,6 +569,7 @@ if ~isempty(dataset_) ...@@ -568,6 +569,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