fixed bug introduced in previous commit: offset needs to be computed for analytic derivatives.
parent
907544bc1a
commit
7f9d2968d9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue