dinvgauss gives the density, pinvgauss gives the distribution function, qinvgauss gives the quantile function, and rinvgauss generates random deviates.
Arguments
x, q
vector of quantiles, must be positive.
mean
location parameter
shape
shape parameter, must be positive.
log, log.p
logical; if TRUE, probabilities/ densities \(p\) are returned as \(\log(p)\).
lower.tail
logical; if TRUE, probabilities are \(P[X \le x]\), otherwise, \(P[X > x]\).
p
vector of probabilities
...
additional parameter passed to statmod::qinvgauss for numerical evaluation of the quantile function.
n
number of random values to return
Details
This implementation of dinvgauss allows for automatic differentiation with RTMB.
qinvgauss and rinvgauss are imported from the statmod package.