Skip to content

gradient.check: how does it work? #176

Answered by BertvanderVeen
gerverska asked this question in Q&A
Discussion options

You must be logged in to vote

gradient.check uses the gradient, I.e. The vector of first derivatives to the likelihood, to check if the model has converged. At the maximum the surface is flat, so the gradient should be zero.

If the gradient is not zero (by some tolerance) for some parameters, the model has not properly converged. This can happen due to a variety of reasons, for example, due to a poor model fit in one way or another.

With many parameters it tends to be difficult to get the gradient for all parameters below some tolerance, and whether it really is problematic or not (in my experience) depends on the (number and type) of parameters that this applies to.

You can check with parameters are not playing nice …

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@gerverska
Comment options

@BertvanderVeen
Comment options

@gerverska
Comment options

@BertvanderVeen
Comment options

@gerverska
Comment options

Answer selected by gerverska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants