powered by
Density, distribution function, quantile function and random generation for the Gumbel distribution (for maxima) with scale and location parameters equal to scale and location, respectively.
scale
location
dgumbel(x,scale=1,location=0,log=FALSE) pgumbel(q,scale=1,location=0,lower.tail=TRUE,log.p=FALSE) qgumbel(p,scale=1,location=0,lower.tail=TRUE,log.p=FALSE) rgumbel(n,scale=1,location=0)
vector of quantiles.
vector of probabilities.
number of observations.
scale parameter.
location parameter.
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE (default), probabilities are P[X <= x],otherwise, P[X > x].
dgumbel gives the density, pgumbel gives the distribution function, qgumbel gives the quantile function, and rgumbel generates random deviates.
dgumbel
pgumbel
qgumbel
rgumbel
If X is a random variable distributed according to a Gumbel distribution, it has density
f(x) = 1/scale*exp(-(x-location)/scale-exp(-(x-location)/scale))
Coles, S. (2001) An introduction to statistical modeling of extreme values. Springer
# NOT RUN { x <- rgumbel(1000,3,100) hist(x,freq=FALSE,col='gray',border='white') curve(dgumbel(x,3,100),add=TRUE,col='red4',lwd=2) # }
Run the code above in your browser using DataLab