Added missing initialization of diffusion_periods (when the diffuse filter is not used).

time-shift
Stéphane Adjemian (Charybdis) 2011-09-20 10:13:01 +02:00
parent 568cc83633
commit d56d35f12b
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ Y = DynareDataset.data-trend;
% 3. Initial condition of the Kalman filter
%------------------------------------------------------------------------------
kalman_algo = DynareOptions.kalman_algo;
diffuse_periods = 0;
switch DynareOptions.lik_init
case 1% Standard initialization with the steady state of the state equation.
if kalman_algo~=2