compute_inv_hessian | R Documentation |
Compute the inverse Hessian
compute_inv_hessian(optpars, fun, grad_trans, tol = 1e-08, ...)
optpars |
parameter vector around which to compute the Hessian |
fun |
function for which the Hessian neeeds to be computed |
grad_trans |
gradient vector for transformed parameters |
tol |
tolerence for calling zero eigenvalues |
Code adapted from lmerTest
, see
https://github.com/runehaubo/lmerTestR/blob/35dc5885205d709cdc395b369b08ca2b7273cb78/R/lmer.R#L173
The inverse hessian
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.