rbs2 {bs} | R Documentation |
Generate random numbers from the BSD with shape parameter alpha and scale parameter beta. rbs2()
is based
on the relationship between the sinhnormal distribution (SHND) and the BSD; see Rieck (2003).
rbs2(n, alpha = 1, beta = 1)
n |
Number of observations. |
alpha |
Shape parameter. |
beta |
Scale parameter. |
rbs2()
gives a vector of n random numbers from the BSD with specific values alpha and beta.
Víctor Leiva <victor.leiva@uv.cl>, Hugo Hernández <hugo.hernande@msn.com>, and Marco Riquelme <mriquelm@ucm.cl>.
Rieck, J. R. (2003). A comparison of two random number generators for the Birnbaum-Saunders distribution. Communications in Statistics - Theory and Methods, 32(5):929-934.
## Examples for simulations rbs1(n=6,alpha=0.5,beta=1.0) rbs2(n=6,alpha=0.5,beta=1.0) rbs3(n=6,alpha=0.5,beta=1.0) rbs(n=6,alpha=0.5,beta=1.0) sample<-rbs(n=100,alpha=0.5,beta=1.0) ## Higtogram for sample hist(sample)