Finv: Function inversion

View source: R/misc.R

FinvR Documentation

Function inversion

Description

Given a function, F(x, ...), and a scalar y, find x such that F(x, ...) = y. Note that there is no checking for the monotonicity of F wrt to x, or that the interval specified is appropriate to the problem. Such fine points are entirely the responsibility of the user/abuser. If the interval specified doesn't contain a root some automatic attempt to expand the interval will be made. Originally intended for use with F as ThreshFDR.

Usage

Finv(y, F, interval = c(0, 1), ...)

Arguments

y

the scalar at which to evaluate the inverse

F

the function

interval

the domain within which to begin looking

...

other arguments for the function F

Author(s)

R. Koenker


REBayes documentation built on Aug. 19, 2023, 5:10 p.m.