Random Numbers from the TPGX Distribution {TPXG} | R Documentation |
Random Numbers from the TPGX Distribution
Description
Generates random numbers form the Two Parameter Xgamma distribution.
Usage
rtpxg(n, alpha = 1, theta = 1)
Arguments
n |
An integer indicating the desired sample size. |
alpha |
A positive real number. |
theta |
A positive real number. |
Details
The TPXG distribution is a mixture of exponential(\theta)
and gamma(3,\theta)
with mixing proportions
\frac{\theta}{\alpha+\theta}
and \frac{\alpha}{\alpha+\theta}
respectively.
Value
A numeric vector of size n containing random values from the TPXG distribution.
Author(s)
Nikolaos Kontemeniotis.
R implementation and documentation: Nikolaos Kontemeniotis kontemeniotisn@gmail.com and Michail Tsagris mtsagris@uoc.gr.
References
"Sen, S., Chandra, N. and Maiti, S. S. (2018). On properties and applications of a two-parameter XGamma distribution. Journal of Statistical Theory and Applications, 17(4): 674–685."
See Also
Examples
x <- rtpxg(100)