Commit 7f9d2968 authored by Marco Ratto's avatar Marco Ratto
Browse files

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

parent 907544bc
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment