Commit 62fc2445 authored by Sébastien Villemot's avatar Sébastien Villemot

Merge branch 'singularity' into 'master'

DsgeSmoother: add warning if there is stochastic singularity

See merge request Dynare/dynare!1751
parents 51278b2f 1cc29d76
Pipeline #4009 passed with stages
in 68 minutes and 50 seconds
......@@ -233,8 +233,10 @@ if kalman_algo == 1 || kalman_algo == 3
options_.nk,kalman_tol,diffuse_kalman_tol,options_.filter_decomposition,options_.smoothed_state_uncertainty);
if isinf(alphahat)
if kalman_algo == 1
fprintf('\nDsgeSmoother: Switching to univariate filter. This may be a sign of stochastic singularity.\n')
kalman_algo = 2;
elseif kalman_algo == 3
fprintf('\nDsgeSmoother: Switching to univariate filter. This may be a sign of stochastic singularity.\n')
kalman_algo = 4;
else
error('This case shouldn''t happen')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment