Skip to content
Snippets Groups Projects
Commit ce0bb6f0 authored by Marco Ratto's avatar Marco Ratto
Browse files

make if logic easier

parent 0b0077ed
Branches utilsx
No related tags found
No related merge requests found
Pipeline #5268 passed
......@@ -86,7 +86,8 @@ non_zero_ME=length(EstimatedParameters.H_entries_to_check_for_positive_definiten
print_init_check_warning=false;
if maximum_number_non_missing_observations>Model.exo_nbr+non_zero_ME
error(['initial_estimation_checks:: Estimation can''t take place because there are less declared shocks than observed variables!'])
elseif init_number_non_missing_observations>Model.exo_nbr+non_zero_ME
end
if init_number_non_missing_observations>Model.exo_nbr+non_zero_ME
if DynareOptions.no_init_estimation_check_first_obs
print_init_check_warning=true;
else
......@@ -96,7 +97,8 @@ end
if maximum_number_non_missing_observations>length(find(diag(Model.Sigma_e)))+non_zero_ME
error(['initial_estimation_checks:: Estimation can''t take place because too many shocks have been calibrated with a zero variance!'])
elseif init_number_non_missing_observations>length(find(diag(Model.Sigma_e)))+non_zero_ME
end
if init_number_non_missing_observations>length(find(diag(Model.Sigma_e)))+non_zero_ME
if DynareOptions.no_init_estimation_check_first_obs
print_init_check_warning=true;
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment