
rstable1(n, alpha, beta, gamma = 1, delta = 0, pm = 1)integer, the number of observations to generate.numeric vector of length n containing the
generated random variates.rstable1 provides two basic
parametrizations, by default, pm = 1, the so called
pm = 0 is the
Nolan, J. P. (2012), Stable Distributions---Models for Heavy Tailed Data, Birkhaeuser, in progress.
Samoridnitsky, G. and Taqqu, M. S. (1994), Stable Non-Gaussian Random Processes, Stochastic Models with Infinite Variance, Chapman and Hall, New York.
rstable which also allows the
2-parametrization and provides further functionality for
stable distributions.# Generate and plot a series of stable random variates
set.seed(1953)
r <- rstable1(n = 1000, alpha = 1.9, beta = 0.3)
plot(r, type = "l", main = "stable: alpha=1.9 beta=0.3",
col = "steelblue"); grid()
hist(r, "Scott", prob = TRUE, ylim = c(0,0.3),
main = "Stable S(1.9, 0.3; 1)")
lines(density(r), col="red2", lwd = 2)Run the code above in your browser using DataLab