compute_inv_hessian: Get Inverse Hessian

View source: R/utils.R

compute_inv_hessianR Documentation

Get Inverse Hessian

Description

Compute the inverse Hessian

Usage

compute_inv_hessian(optpars, fun, grad_trans, tol = 1e-08, ...)

Arguments

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

Details

Code adapted from lmerTest, see https://github.com/runehaubo/lmerTestR/blob/35dc5885205d709cdc395b369b08ca2b7273cb78/R/lmer.R#L173

Value

The inverse hessian


pbastide/phylolimma documentation built on Nov. 17, 2024, 1:34 p.m.