Density, distribution function, quantile function, and random generation for the inverted Gumbel distribution.

dinvgumbel(x, location = 0, scale = 1, log = FALSE)

pinvgumbel(q, location = 0, scale = 1, log.p = FALSE, lower.tail = TRUE)

qinvgumbel(p, location = 0, scale = 1, log.p = FALSE, lower.tail = TRUE)

rinvgumbel(n, location = 0, scale = 1)

Arguments

x

Numeric vector of quantiles.

location

Numeric location parameter.

scale

Numeric scale parameter.

log

Logical. If TRUE, dinvgumbel() returns log-densities.

q

Numeric vector of quantiles.

log.p

Logical. If TRUE, probabilities are supplied or returned on the log scale.

lower.tail

Logical. If TRUE, probabilities are \(P[X \le x]\); otherwise, \(P[X > x]\).

p

Numeric vector of probabilities.

n

Number of observations.

Value

  • dinvgumbel() returns a numeric vector of density values.

  • pinvgumbel() returns a numeric vector of probabilities.

  • qinvgumbel() returns a numeric vector of quantiles.

  • rinvgumbel() returns a numeric vector of random draws.

Note

Version 1.0.0.

Examples

dinvgumbel(c(-1, 0, 1), location = 0, scale = 1)
#> [1] 0.2546464 0.3678794 0.1793741
pinvgumbel(c(-1, 0, 1), location = 0, scale = 1)
#> [1] 0.3077994 0.6321206 0.9340120
qinvgumbel(c(0.25, 0.75), location = 0, scale = 1)
#> [1] -1.2458993  0.3266343

set.seed(1)
rinvgumbel(3, location = 0, scale = 1)
#> [1]  0.28224819 -0.01153789 -0.58496474