Improve error message for incompatible filter/Kalman option

time-shift
Johannes Pfeifer 2014-09-20 19:58:35 +02:00 committed by Johannes Pfeifer
parent bb0446873f
commit d6bc85fdc6
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ switch DynareOptions.lik_init
if kalman_algo == 0
kalman_algo = 3;
elseif ~((kalman_algo == 3) || (kalman_algo == 4))
error(['diffuse filter: options_.kalman_algo can only be equal ' ...
error(['The model requires Diffuse filter, but you specified a different Kalman filter. You must set options_.kalman_algo ' ...
'to 0 (default), 3 or 4'])
end
[Z,T,R,QT,Pstar,Pinf] = schur_statespace_transformation(Z,T,R,Q,DynareOptions.qz_criterium);