Density, distribution function, quantile function, and random generation for the Kumaraswamy distribution.

dkumaraswamy(x, a = 1, b = 1, log = FALSE)

pkumaraswamy(q, a = 1, b = 1, log.p = FALSE, lower.tail = TRUE)

qkumaraswamy(p, a = 1, b = 1, log.p = FALSE, lower.tail = TRUE)

rkumaraswamy(n, a = 1, b = 1)

Arguments

x

Numeric vector of quantiles.

a

Numeric shape parameter. Must be positive.

b

Numeric shape parameter. Must be positive.

log

Logical. If TRUE, dkumaraswamy() 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

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

  • pkumaraswamy() returns a numeric vector of probabilities.

  • qkumaraswamy() returns a numeric vector of quantiles.

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

Note

Version 1.0.0.

Examples

dkumaraswamy(c(0.25, 0.5), a = 2, b = 1.5)
#> [1] 0.7261844 1.2990381
pkumaraswamy(c(0.25, 0.5), a = 2, b = 1.5)
#> [1] 0.09226953 0.35048095
qkumaraswamy(c(0.25, 0.75), a = 2, b = 1.5)
#> [1] 0.4177537 0.7766272

set.seed(1)
rkumaraswamy(3, a = 2, b = 1.5)
#> [1] 0.4312046 0.5164830 0.6578935