Open d-morrison opened 1 month ago
I tested out optimize()
in https://github.com/UCD-SERG/serocalculator/blob/optimize/data-raw/optimize.R; initial results were not promising. nlm()
seems to be computing the gradient and hessian in C; if we could access its internal functions, that might help.
optimize()
performs one-dimensional minimization, andderiv()
can be used to get the Hessian at the maximum. Might be faster.