Description Usage Arguments Details Value Note Author(s) Examples
A function for generating values from the Birnbaum-Saunders distribution.
1 |
n |
number of observations. If |
alpha |
vector of shape parameter values. |
beta |
vector of scale parameter value. |
The density function of the Birnbaum-Saunders distribution used in the function rbs()
is
f_{X}(x|α, β) = \frac{1}{√{2\,π}}\,\exp≤ft[-\frac{1}{2α^2} ≤ft(\frac{x}{β}+ \frac{β}{x}-2\right)\right]\frac{(x+β)}{2α √{β x^{3}}}
A sample of size n from the Birnbaum-Saunders distribution.
If X is Birnbaum-Saunders distributed then
X = (β/4)(α Z + √{(α Z)^2 + 4})^2,
where Z follows a standard normal distribution.
Eliardo G. Costa eliardocosta@ccet.ufrn.br and Manoel Santos-Neto manoel.ferreira@ufcg.edu.br
1 2 3 | x <- rbs(n=10, a = 10, b = 2.0)
x
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.