Generalised Logistic distribution | R Documentation |
Density, distribution function, quantile function and random generation for the
Generalised Logistic distribution (as in Hosking and Wallis' book) with location parameter
equal to loc
, scale parameter equal to scale
and shape parameter equal to sh
dglo(x, loc, scale, sh, log = FALSE)
pglo(q, loc, scale, sh, lower.tail = TRUE, log.p = FALSE)
qglo(p, loc, scale, sh, lower.tail = TRUE, log.p = FALSE)
rglo(n, loc, scale, sh)
x, q |
vector of quantiles |
loc |
location parameter |
scale |
scale parameter |
sh |
shape parameter |
log, log.p |
logical; if TRUE, probabilities p are given as log(p) |
lower.tail |
logical; if |
p |
vector of probabilities |
n |
number of observations. If |
dglo gives the density, pglo gives the distribution function, qglo gives the quantile function, and rglo generates random deviates. The length of the result is determined by n for rglo, and is the maximum of the lengths of the numerical arguments for the other functions. The numerical arguments are recycled to the length of the result. Only the first elements of the logical arguments are used.
Hosking, J.R.M. and Wallis, J.R., 2005. Regional frequency analysis: an approach based on L-moments. Cambridge university press.
plot(seq(-26,80,by=0.2),dglo(seq(-26,80,by=0.2),4,6,-0.2),type="l")
plot(ecdf(rglo(100,4,6,-0.2)))
lines(seq(-26,80,by=0.2),pglo(seq(-26,80,by=0.2),4,6,-0.2),col=2)
qglo(c(0.5,0.99,0.995,0.995,0.999),4,6,-0.2)
# notable quantiles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.