I used nlm function in R to do the optimization. When I calculated the correlation between estimated parameters using the inverse of Hessian matrix, I got negative values on the diagonal. My questions are what could be the reason for that issue, and what could be possible solution?
Asked
Active
Viewed 7,208 times
7
1 Answers
1
The variance covariance matrix can be aproximated by the inverse of the negative Hessian H (matrix of second order partial derivatives). May be the reason is that you are approximating using the inverse $H$, when it should be the inverse of the negative H.
Carlos S Traynor
- 119
- 5
-
3But the OP said the code worked for other data-sets so this seems unlikely to be true. – mdewey Nov 24 '17 at 14:09
numDerivmight help. – Randel Jun 14 '16 at 17:31