Description Usage Arguments Value Author(s) Examples
Density function, distribution function, quantile function, random number generation function for the Kumaraswamy distribution re-parametrized in terms of the mode.
1 2 3 4 5 6 7 |
x, q |
vector of positive quantiles. |
mu |
location parameter indicating the mode. |
phi |
shape parameter. |
log, log.p |
logical; If TRUE, probabilities p are given as log(p). |
lower.tail |
logical; If TRUE, (default), P(X ≤q x) are returned, otherwise P(X > x). |
p |
vector of probabilities. |
n |
number of observations. If |
dkum
gives the density, pkum
gives the distribution function,
qkum
gives the quantile function and rkum
generates random deviates.
Invalid arguments will return an error message.
André Felipe B. Menezes andrefelipemaringa@gmail.com
1 2 3 4 5 6 7 8 9 10 | set.seed(6969)
x <- rkum(n = 1e4, mu = 0.5, phi = 3.0)
R <- range(x)
S <- seq(from = R[1], to = R[2], by = 0.01)
hist(x, prob = TRUE, main = 'unit-gamma distribution')
lines(S, dkum(x = S, mu = 0.5, phi = 3.0), col = 2)
plot(ecdf(x))
lines(S, pkum(q = S, mu = 0.5, phi = 3.0), col = 2)
plot(quantile(x, probs = S), type = "l")
lines(qkum(p = S, mu = 0.5, phi = 3.0), col = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.