Fixed bug related to the position of the info argument returned by non_linear_dsge_likelihood.

time-shift
Stéphane Adjemian (Charybdis) 2012-05-04 11:36:27 +02:00
parent ac2fa68b86
commit 6103500543
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ end
% Evaluate the likelihood.
[fval,junk1,junk2,a,b,c,d] = feval(objective_function,xparam1,DynareDataset,DynareOptions,Model,EstimatedParameters,BayesInfo,DynareResults);
if DynareOptions.dsge_var
if DynareOptions.dsge_var || strcmp(func2str(objective_function),'non_linear_dsge_likelihood')
info = b;
else
info = d;