Skip to content
Snippets Groups Projects
Commit 219b4fe5 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Merge pull request #813 from JohannesPfeifer/model_diag

Add missing abs to unit root check in model_diagnostics.m
parents 511d6218 e4745cbc
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ if singularity_problem
options_check=options;
options_check.noprint=1;
[eigenvalues_] = check(M, options_check, oo);
if any((abs(eigenvalues_)-1)<1e-6)
if any(abs(abs(eigenvalues_)-1)<1e-6)
fprintf('MODEL_DIAGNOSTICS: The singularity seems to be (partly) caused by the presence of a unit root\n')
fprintf('MODEL_DIAGNOSTICS: as the absolute value of one eigenvalue is in the range of +-1e-6 to 1.\n')
fprintf('MODEL_DIAGNOSTICS: If the model is actually supposed to feature unit root behavior, such a warning is expected,\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment