CEWGeo distribution {ComRiskModel} | R Documentation |
Complementary exponentiated Weibull geomatric distribution
Description
Evaluates the PDF, CDF, QF, random numbers and MLEs based on the complementary exponentiated Weibull geomatric (CEWGeo) distribution. The CDF of the complementary G geomatric distribution is as follows:
F(x)=\frac{\left(1-\lambda\right)G(x)}{\left(1-\lambda G(x)\right)};\qquad\lambda\in(0,1),
where G(x) represents the baseline exponentiated Weibull CDF, it is given by
G(x)=\left(1-\exp(-\alpha x^{\beta})\right)^{\theta};\qquad\alpha,\beta,\theta>0.
By setting G(x) in the above Equation, yields the CDF of the CEWGeo distribution.
Usage
dCEWGeo(x, alpha, beta, theta, lambda, log = FALSE)
pCEWGeo(x, alpha, beta, theta, lambda, log.p = FALSE, lower.tail = TRUE)
qCEWGeo(p, alpha, beta, theta, lambda, log.p = FALSE, lower.tail = TRUE)
rCEWGeo(n, alpha, beta, theta, lambda)
mCEWGeo(x, alpha, beta, theta, lambda, method="B")
Arguments
x |
A vector of (non-negative integer) quantiles. |
p |
A vector of probablities. |
n |
The number of random values to be generated under the CEWGeo distribution. |
lambda |
The strictly positive parameter of the geomatric distribution |
alpha |
The strictly positive scale parameter of the baseline exponentiated Weibull distribution ( |
beta |
The strictly positive shape parameter of the baseline exponentiated Weibull distribution ( |
theta |
The strictly positive shape parameter of the baseline exponentiated Weibull distribution ( |
lower.tail |
if FALSE then 1-F(x) are returned and quantiles are computed 1-p. |
log |
if TRUE, probabilities p are given as log(p). |
log.p |
if TRUE, probabilities p are given for exp(p). |
method |
the procedure for optimizing the log-likelihood function after setting the intial values of the parameters and data values for which the CEWGeo distribution is fitted. It could be "Nelder-Mead", "BFGS", "CG", "L-BFGS-B", or "SANN". "BFGS" is set as the default. |
Details
These functions allow for the evaluation of the PDF, CDF, QF, random numbers and MLEs of the unknown parameters with the standard error (SE) of the estimates of the CEWGeo distribution. Additionally, it offers goodness-of-fit statistics such as the AIC, BIC, -2L, A test, W test, Kolmogorov-Smirnov test, P-value, and convergence status.
Value
dCEWGeo gives the (log) probability function. pCEWGeo gives the (log) distribution function. qCEWGeo gives the quantile function. rCEWGeo generates random values.
Author(s)
Muhammad Imran and M.H Tahir.
R implementation and documentation: Muhammad Imran imranshakoor84@yahoo.com and M.H Tahir mht@iub.edu.pk.
References
Tahir, M. H., & Cordeiro, G. M. (2016). Compounding of distributions: a survey and new generalized classes. Journal of Statistical Distributions and Applications, 3, 1-35.
Mahmoudi, E., & Shiran, M. (2012). Exponentiated Weibull-geometric distribution and its applications. arXiv preprint arXiv:1206.4008.
Nadarajah, S., Cordeiro, G. M., & Ortega, E. M. (2013). The exponentiated Weibull distribution: a survey. Statistical Papers, 54, 839-877.
See Also
Examples
x<-data_guineapigs
dCEWGeo(x,1,1,0.2,0.2)
pCEWGeo(x,2,1,1.2,0.2)
qCEWGeo(0.7,2,1,1.2,0.2)
mCEWGeo(x,2,1,1.2,0.32, method="B")