Performs simple diagnostic tests to assess whether the optimizer that produced an estimated model actually converged to a local minimum point of the negative log marginal likelihood function.
egf_has_converged(object, check = TRUE, tol = 1)
TRUE
if all tests pass. FALSE
if any test fails.
NA
if no test fails, but the test for a positive definite
Hessian matrix is indeterminate because the matrix has not been
computed.
an egf
object.
a logical. If TRUE
, then an error is thrown if object
does not actually inherit from class egf
.
a positive number. Convergence requires all gradient elements
to be less than or equal to tol
in absolute value.