CFBio distribution {ComRiskModel} | R Documentation |

Evaluates the PDF, CDF, QF, random numbers and MLEs based on the complementary Fisk binomial (CFBio) distribution. The CDF of the complementary G binomial distribution is as follows:

```
F(x)=\frac{\left[1-\lambda(1-G(x))\right]^{m}-(1-\lambda)^{m}}{1-(1-\lambda)^{m}};\qquad\lambda\in\left(0,1\right),\,m\geq1,
```

where G(x) represents the baseline Fisk CDF, it is given by

```
G\left(x\right)=1-\left[1+\left(\frac{x}{a}\right)^{b}\right]^{-1};\qquad a,b>0.
```

By setting G(x) in the above Equation, yields the CDF of the CFBio distribution.

```
dCFBio(x, a, b, m, lambda, log = FALSE)
pCFBio(x, a, b, m, lambda, log.p = FALSE, lower.tail = TRUE)
qCFBio(p, a, b, m, lambda, log.p = FALSE, lower.tail = TRUE)
rCFBio(n, a, b, m, lambda)
mCFBio(x, a, b, m, lambda, method="B")
```

`x` |
A vector of (non-negative integer) quantiles. |

`p` |
A vector of probablities. |

`n` |
The number of random values to be generated under the CFBio distribution. |

`lambda` |
The strictly positive parameter of the binomial distribution |

`m` |
The positive parameter of the binomial distribution |

`a` |
The strictly positive scale parameter of the baseline Fisk distribution ( |

`b` |
The strictly positive shape parameter of the baseline Fisk 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 CFBio distribution is fitted. It could be "Nelder-Mead", "BFGS", "CG", "L-BFGS-B", or "SANN". "BFGS" is set as the default. |

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 CFBio 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.

dCFBio gives the (log) probability function. pCFBio gives the (log) distribution function. qCFBio gives the quantile function. rCFBio generates random values. mCFBio gives the estimated parameters along with SE and goodness-of-fit measures.

Muhammad Imran and M.H Tahir.

R implementation and documentation: Muhammad Imran imranshakoor84@yahoo.com and M.H Tahir mht@iub.edu.pk.

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.

Kleiber, C., & Kotz, S. (2003). Statistical size distributions in economics and actuarial sciences. John Wiley & Sons.

```
x<-data_guineapigs
rCFBio(20,2,1,2,0.2)
dCFBio(x,2,1,1,0.3)
pCFBio(x,2,1,1,0.3)
qCFBio(0.7,2,1,1,0.2)
mCFBio(x,0.07,0.102,0.102,0.203, method="B")
```

[Package *ComRiskModel* version 0.2.0 Index]