Title: | Kumaraswamy Complementary Weibull Geometric (Kw-CWG) Probability Distribution |
---|---|
Description: | Density, distribution function, quantile function and random generation for the Kumaraswamy Complementary Weibull Geometric (Kw-CWG) lifetime probability distribution proposed in Afify, A.Z. et al (2017) <doi:10.1214/16-BJPS322>. |
Authors: | Matheus H. J. Saldanha [aut, cre], Adriano K. Suzuki [aut] |
Maintainer: | Matheus H. J. Saldanha <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.0 |
Built: | 2024-11-01 06:38:15 UTC |
Source: | CRAN |
Density, distribution function, quantile function and random generation for the Kumaraswamy Complementary Weibull Geometric probability distribution (Kw-CWG) lifetime distribution.
This package follows naming convention that is consistent with base R,
where density (or probability mass) functions, distribution functions,
quantile functions and random generation functions names are followed by
d
, p
, q
, and r
prefixes.
Behaviour of the functions is consistent with base R, where for
not valid parameters values NaN
's are returned, while
for values beyond function support 0
's are returned
(e.g. for non-integers in discrete distributions, or for
negative values in functions with non-negative support).
All the functions vectorized and coded in C++ using Rcpp.
Density, distribution function, quantile function and random generation for the Kumaraswamy Complementary Weibull Geometric (Kw-CWG) probability distribution.
dkwcwg(x, alpha, beta, gamma, a, b, log = FALSE) pkwcwg(q, alpha, beta, gamma, a, b, lower.tail = TRUE, log.p = FALSE) qkwcwg(p, alpha, beta, gamma, a, b, lower.tail = TRUE, log.p = FALSE) rkwcwg(n, alpha, beta, gamma, a, b)
dkwcwg(x, alpha, beta, gamma, a, b, log = FALSE) pkwcwg(q, alpha, beta, gamma, a, b, lower.tail = TRUE, log.p = FALSE) qkwcwg(p, alpha, beta, gamma, a, b, lower.tail = TRUE, log.p = FALSE) rkwcwg(n, alpha, beta, gamma, a, b)
x , q
|
vector of quantiles. |
alpha , beta , gamma , a , b
|
Parameters of the distribution. 0 < alpha < 1, and the other parameters mustb e positive. |
log , log.p
|
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are |
p |
vector of probabilities. |
n |
number of observations. If |
Probability density function
Cumulative density function
Quantile function
Afify, A.Z., Cordeiro, G.M., Butt, N.S., Ortega, E.M. and Suzuki, A.K. (2017). A new lifetime model with variable shapes for the hazard rate. Brazilian Journal of Probability and Statistics