The tolerance that determines whether to break (early) from the algorithm.
niter
Number of iterations to try before quitting.
upcross.level
The level where it is desired to find where f crosses.
Value
xThe estimated crossing.
fmThe difference between the function value at the found crossing and upcross.level.
iterNumber of iterations used to find the crossing.
Details
This function is shamelessly stolen from the fields package (cf. bisection.search),
but is slightly simpler (i.e., less useful) in that it doesn't allow for extra arguments to f.
It is used in the gev.parameterCI and gpd.parameterCI functions to try to find analytically
where the profile likelihood crosses the chi-square based critical value for obtaining confidence
bounds on parameter estimates.
References
Fishbane, P. M., Gasiorowicz, S. and Thornton, S. T. (1996) Physics for Scientists and Engineers, 2nd ed. (Extended), Upper Saddle River, New Jersey: Prentice Hall.