idigamma | R Documentation |
The inverse of the digamma function, i.e. the derivative of the log-gamma function.
idigamma(x, ...)
x |
numeric. The point to evaluate the function. |
... |
extra arguments passed to |
The idigamma()
function implements the inverse of the digamma function
\psi
. It is a numerical approximation based on the Brent optimization
algorithm. Specifically, idigamma()
makes a call to optim()
in order to
solve the equation \psi(x) = y
; more accurately, to find the minimum of
f(x) = \log\Gamma(x) - xy
, whose derivative is
f'(x) = \psi(x) - y
. The optimization is restricted within the tight
bounds derived by Batir (2017). The function is vectorized.
numeric. The evaluated function.
Necdet Batir (2017), INEQUALITIES FOR THE INVERSES OF THE POLYGAMMA FUNCTIONS https://arxiv.org/pdf/1705.06547
Oikonomidis, I. & Trevezas, S. (2023), Moment-Type Estimators for the Dirichlet and the Multivariate Gamma Distributions, arXiv, https://arxiv.org/abs/2311.15025
optim()
idigamma(2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.