While learning probit, mprobit, logit, mlogit, ivprobit, and cmp like
Code:
mprobit Y X
I realized that likelihood calculation is often “backed up”. Then I have to add an option “nrtolerance(1e-4)” (or other number) to circumvent this problem until I find a number that is not too big but not too small enough to circumvent this problem.

This is a tedious process. Is there a way to do something like this:
If the calculation hits “backed up” 3 times like the following,

Iteration 6: log likelihood = -45564.029 (backed up)
Iteration 7: log likelihood = -45564.029 (backed up)
Iteration 8: log likelihood = -45564.029 (backed up)
then it automatically changes nrtolerance to a bigger number, try again, and if it hits “backed up” 3 times, then it again automatically increases nrtolerance to a bigger number, and so on, until it solves the problem.

Would there be such a solution?