% function [fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations)
% function [fval,llik,cost_flag,ys,trend_coeff,info] = DsgeLikelihood_hh(xparam1,DynareDataset,DynareOptions,Model,EstimatedParameters,BayesInfo,DynareResults)
% Evaluates the posterior kernel of a dsge model.
%
% INPUTS
...
...
@@ -11,6 +11,7 @@ function [fval,llik,cost_flag,ys,trend_coeff,info] = DsgeLikelihood_hh(xparam1,D
% no_more_missing_observations [integer]
% OUTPUTS
% fval : value of the posterior kernel at xparam1.
% llik : probabilities at each time point
% cost_flag : zero if the function returns a penalty, one otherwise.
% ys : steady state of original endogenous variables
% trend_coeff :
...
...
@@ -52,11 +53,14 @@ if nargin==1
return
end
fval=[];
ys=[];
trend_coeff=[];
cost_flag=1;
% Initialization of the returned variables and others...
fval=[];
ys=[];
trend_coeff=[];
cost_flag=1;
llik=NaN;
info=0;
singularity_flag=0;
ifDynareOptions.block==1
error('DsgeLikelihood_hh:: This routine (called if mode_compute==5) is not compatible with the block option!')