Learn R Programming

TPXG (version 1.0)

Inverse Cumulative Mass Function of the TPPXG Distribution: Inverse Cumulative Mass Function of the TPPXG Distribution

Description

Computes the inverse cumulative mass function (quantile function) of the Two Parameter Poisson Xgamma distribution for given probability values.

Usage

qtppxg(p, alpha = 1, theta = 1, tol = 1e-5)

Value

A numeric vector containing the inverse cumulative mass function of the TPPXG distribution at the given values of p.

Arguments

p

A numeric vector containg values in [0,1].

alpha

A positive real number.

theta

A positive real number.

tol

A positive real number specifying the tolerance level for the convergence of the Newton-Raphson algorithm.

Author

Nikolaos Kontemeniotis.

R implementation and documentation: Nikolaos Kontemeniotis kontemeniotisn@gmail.com and Michail Tsagris mtsagris@uoc.gr.

Details

This function uses the Newton-Raphson algorithm in order to estimate the inverse cumulative mass function.

References

"Wani, M. A., Ahmad, P. B., Para, B. A. and Elah, N. (2023). A new regression model for count data with applications to health care data. International Journal of Data Science and Analytics."

See Also

dtppxg,ptppxg,rtppxg

Examples

Run this code
p <- runif(100)
qtppxg(p, 1, 1)

Run the code above in your browser using DataLab