Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cdfgum

Gumbel (extreme-value type I) distribution


Description

Distribution function and quantile function of the Gumbel distribution.

Usage

cdfgum(x, para = c(0, 1))
quagum(f, para = c(0, 1))

Arguments

x

Vector of quantiles.

f

Vector of probabilities.

para

Numeric vector containing the parameters of the distribution, in the order xi, alpha (location, scale).

Details

The Gumbel distribution with location parameter xi and scale parameter alpha has distribution function

F(x) = exp(-exp(-(x-xi)/alpha))

and quantile function

x(F) = xi - alpha log(-log F) .

Value

cdfgum gives the distribution function; quagum gives the quantile function.

Note

The functions expect the distribution parameters in a vector, rather than as separate arguments as in the standard R distribution functions pnorm, qnorm, etc.

See Also

cdfgev for the generalized extreme-value distribution, which generalizes the Gumbel distribution.

Examples

# Random sample from the Gumbel distribution with parameters xi=0, alpha=3.
quagum(runif(100), c(0,3))

lmom

L-Moments

v2.8
Common Public License Version 1.0
Authors
J. R. M. Hosking
Initial release
2019-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.