Description Usage Arguments Value Author(s) References Examples
stable_rnd(N, pars)
generates N random samples of a skew stable distribuiton
with parameters pars = c(alpha, beta, sigma, mu) using the Chambers, Mallows,
and Stuck (1976) method.
1 | stable_rnd(N, pars, parametrization = 0L)
|
N |
Number of values to generate. |
pars |
Vector with an initial estimation of the parameters.
|
parametrization |
Parametrization used for the skew stable distribution, as defined by JP Nolan (1997). By default, parametrization = 0. |
A numeric vector.
Javier Royuela del Val, Federico Simmross Wattenberg and Carlos Alberola López
Maintainer: Javier Royuela del Val jroyval@lpi.tel.uva.es
Chambers JM, Mallows CL, Stuck BW (1976). A Method for Simulating Stable Random Variables. Journal of the American Statistical Association, 71(354), 340-344. doi:10.1080/01621459.1976.10480344.
1 2 3 4 5 | N <- 1000
pars <- c(1.25, 0.95, 1.0, 0.0)
rnd <- stable_rnd(N, pars)
hist(rnd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.