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

Gumbel

The Gumbel Distribution


Description

Density, distribution function, quantile function and random generation for the Gumbel distribution with location and scale parameters.

Usage

dgumbel(x, loc, scale, log = FALSE)

pgumbel(q, loc, scale, lower.tail = TRUE, log.p = FALSE)

qgumbel(p, loc, scale, lower.tail = TRUE, log.p = FALSE)

rgumbel(n, loc, scale)

Arguments

x, q

vector of quantiles.

loc

location parameter.

scale

scale parameter.

log, log.p

logical; if TRUE, probabilities p are given as log(p), default: FALSE.

lower.tail

logical; if TRUE, probabilities are P[X ≤ x] otherwise, P[X > x], default: TRUE.

p

vector of probabilities.

n

number of observations.

Details

The Gumbel distribution function with location parameter μ and scale parameter β has density given by

f(x)=1/β e^-(z+e^-z)

, where z=(x-μ)/β. The cumulative distribution function is

F(x)=e^(-e^z)

with z as stated above.

Value

dgumbel gives the density, pgumbel gives the distribution function, qgumbel gives the quantile function, and rgumbel generates random deviates.

Invalid arguments will result in return value NaN, with a warning.

See Also

Examples

dgumbel(seq(1, 5), 0, 1)
qgumbel(pgumbel(seq(1, 5), 0, 1), 0 ,1)
rgumbel(5, 0, 1)

mistr

Mixture and Composite Distributions

v0.0.4
GPL-3
Authors
Lukas Sablica [aut, cre] (<https://orcid.org/0000-0001-9166-4563>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>)
Initial release

We don't support your browser anymore

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