Description Usage Arguments Details See Also Examples
Density, distribution function, quantile function and random generation for the inverse gamma distribution.
1 2 3 4 5 6 7 8 9 |
x, q |
vector of quantiles. |
shape |
inverse gamma shape parameter |
rate |
inverse gamma rate parameter |
scale |
alternative to rate; scale = 1/rate |
log, log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are P[X <= x] otherwise, P[X > x]. |
p |
vector of probabilities. |
n |
number of observations. If length(n) > 1, the length is taken to be the number required. |
The inverse gamma distribution with parameters shape and rate has density f(x) = rate^shape/Gamma(shape) x^(-1-shape) e^(-rate/x) it is the inverse of the standard gamma parameterzation in R.
The functions (d/p/q/r)invgamma simply wrap those of the standard
(d/p/q/r)gamma R implementation, so look at, say,
dgamma
for details.
dgamma
; these functions just wrap the
(d/p/q/r)gamma functions.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.