fprintf('Unable to evaluate the expression\n %s \nfor the filter_initial_state of variable %s\n',Model.filter_initial_state{state_indices(ii),2},Model.endo_names(state_indices(ii),:))
end
end
end
end
ifDynareOptions.ramsey_policy
ifDynareOptions.ramsey_policy
%test whether specification matches
%test whether specification matches
inst_nbr=size(DynareOptions.instruments,1);
inst_nbr=size(DynareOptions.instruments,1);
...
@@ -233,3 +246,8 @@ end
...
@@ -233,3 +246,8 @@ end
if~isequal(DynareOptions.mode_compute,11)
if~isequal(DynareOptions.mode_compute,11)
disp(['Initial value of the log posterior (or likelihood): 'num2str(-fval)]);
disp(['Initial value of the log posterior (or likelihood): 'num2str(-fval)]);
end
end
functionevaluate_expression(expression,M_,oo_)
% function evaluate_expression(expression,M_,oo_)
%evaluates expressions relying on M_ and oo_ having their original names
% function [alphahat,epsilonhat,etahat,a,aK,PK,decomp] = DiffuseKalmanSmoother1(T,Z,R,Q,H,Pinf1,Pstar1,Y,pp,mm,smpl,data_index,nk,kalman_tol,diffuse_kalman_tol,decomp_flag,state_uncertainty_flag)
% function [alphahat,epsilonhat,etahat,a,aK,PK,decomp] = DiffuseKalmanSmoother1(T,Z,R,Q,H,Pinf1,Pstar1,Y,pp,mm,smpl,data_index,nk,kalman_tol,diffuse_kalman_tol,decomp_flag,state_uncertainty_flag)
% Computes the diffuse kalman smoother without measurement error, in the case of a non-singular var-cov matrix.
% Computes the diffuse kalman smoother without measurement error, in the case of a non-singular var-cov matrix.
%
%
% INPUTS
% INPUTS
% a_initial:mm*1 vector of initial (predicted) states
% function [alphahat,epsilonhat,etahat,a1,P,aK,PK,d,decomp] = missing_DiffuseKalmanSmootherH3_Z(T,Z,R,Q,H,Pinf1,Pstar1,Y,pp,mm,smpl,data_index,nk,kalman_tol,decomp_flag,state_uncertainty_flag)
% function [alphahat,epsilonhat,etahat,a1,P,aK,PK,d,decomp] = missing_DiffuseKalmanSmootherH3_Z(T,Z,R,Q,H,Pinf1,Pstar1,Y,pp,mm,smpl,data_index,nk,kalman_tol,decomp_flag,state_uncertainty_flag)
% Computes the diffuse kalman smoother in the case of a singular var-cov matrix.
% Computes the diffuse kalman smoother in the case of a singular var-cov matrix.
% Univariate treatment of multivariate time series.
% Univariate treatment of multivariate time series.
%
%
% INPUTS
% INPUTS
% a_initial:mm*1 vector of initial states
% T: mm*mm matrix state transition matrix
% T: mm*mm matrix state transition matrix
% Z: pp*mm matrix selector matrix for observables in augmented state vector
% Z: pp*mm matrix selector matrix for observables in augmented state vector
% R: mm*rr matrix second matrix of the state equation relating the structural innovations to the state variables
% R: mm*rr matrix second matrix of the state equation relating the structural innovations to the state variables