Skip to content

Commit b8c7b91

Browse files
authored
changed order in update_aux_estimation! (#123)
1 parent 4ee85b8 commit b8c7b91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MLE.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ end
8484
function update_aux_estimation!(aux_est::AuxEstimation{T}, func::Optim.TwiceDifferentiable,
8585
opt_result::Optim.OptimizationResults) where T
8686

87-
push!(aux_est.loglikelihood, -opt_result.minimum)
88-
push!(aux_est.psi, opt_result.minimizer)
8987
push!(aux_est.numerical_hessian, Optim.hessian!(func, opt_result.minimizer))
88+
push!(aux_est.psi, opt_result.minimizer)
89+
push!(aux_est.loglikelihood, -opt_result.minimum)
9090
push!(aux_est.opt_result, opt_result)
9191
return
9292
end

0 commit comments

Comments
 (0)