fixed bug introduced in previous commit: offset needs to be computed for analytic derivatives.

time-shift
Marco Ratto 2012-06-08 08:50:07 +02:00
parent 907544bc1a
commit 7f9d2968d9
1 changed files with 6 additions and 1 deletions

View File

@ -457,7 +457,12 @@ switch DynareOptions.lik_init
error('dsge_likelihood:: Unknown initialization approach for the Kalman filter!')
end
if analytic_derivation
if analytic_derivation,
offset = EstimatedParameters.nvx;
offset = offset+EstimatedParameters.nvn;
offset = offset+EstimatedParameters.ncx;
offset = offset+EstimatedParameters.ncn;
no_DLIK = 0;
full_Hess = analytic_derivation==2;
asy_Hess = analytic_derivation==-2;