| bisa | R Documentation |
Density, distribution function, quantile function, and random generation for the Birnbaum-Saunders (fatigue life) distribution.
dbisa(x, scale = 1, shape, log = FALSE)
pbisa(q, scale = 1, shape, lower.tail = TRUE, log.p = FALSE)
qbisa(p, scale = 1, shape, lower.tail = TRUE, log.p = FALSE)
rbisa(n, scale = 1, shape)
x, q |
vector of quantiles. |
scale |
scale parameter |
shape |
shape parameter |
log, log.p |
logical; if |
lower.tail |
logical; if |
p |
vector of probabilities. |
n |
number of random values to return. |
This implementation allows for automatic differentiation with RTMB.
The Birnbaum-Saunders distribution with scale \beta and shape
\alpha is the distribution of X for which
\xi(X) = \frac{1}{\alpha}\left(\sqrt{X/\beta} - \sqrt{\beta/X}\right)
= \frac{2}{\alpha}\sinh\left(\tfrac{1}{2}\log(X/\beta)\right)
is standard normal, so that F(x) = \Phi(\xi(x)) and
f(x) = \phi(\xi(x))\, \frac{x + \beta}{2\alpha\sqrt{\beta}\, x^{3/2}}, \quad x > 0.
The scale \beta is the median, and
E(X) = \beta(1 + \alpha^2/2). The quantile function is
\beta \exp(2\,\mathrm{asinh}(\alpha z / 2)) with z = \Phi^{-1}(p).
dbisa gives the density, pbisa gives the distribution function,
qbisa gives the quantile function, and rbisa generates random deviates.
Birnbaum, Z. W. and Saunders, S. C. (1969) A new family of life distributions. Journal of Applied Probability, 6, 319-327.
invgauss, pgweibull, gompertz
set.seed(1)
x <- rbisa(5, scale = 2, shape = 0.5)
d <- dbisa(x, 2, 0.5)
p <- pbisa(x, 2, 0.5)
q <- qbisa(p, 2, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.