Commit af65943f authored by Ferhat Mihoubi's avatar Ferhat Mihoubi

A last argument (the number of observed variables which are not state...

A last argument (the number of observed variables which are not state variables) is needed in block_kalman_filter
parent d16caeeb
......@@ -481,7 +481,7 @@ singularity_flag = 0;
if ((kalman_algo==1) || (kalman_algo==3))% Multivariate Kalman Filter
if no_missing_data_flag
if DynareOptions.block == 1
[err, LIK] = block_kalman_filter(T,R,Q,H,Pstar,Y,start,Z,kalman_tol,riccati_tol, Model.nz_state_var, Model.n_diag);
[err, LIK] = block_kalman_filter(T,R,Q,H,Pstar,Y,start,Z,kalman_tol,riccati_tol, Model.nz_state_var, Model.n_diag, Model.nobs_non_statevar);
mexErrCheck('block_kalman_filter', err);
else
LIK = kalman_filter(Y,diffuse_periods+1,size(Y,2), ...
......
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