Random Numbers from the TPGX Distribution | R Documentation |
Generates random numbers form the Two Parameter Xgamma distribution.
rtpxg(n, alpha = 1, theta = 1)
n |
An integer indicating the desired sample size. |
alpha |
A positive real number. |
theta |
A positive real number. |
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.
A numeric vector of size n containing random values from the TPXG distribution.
Nikolaos Kontemeniotis.
R implementation and documentation: Nikolaos Kontemeniotis kontemeniotisn@gmail.com and Michail Tsagris mtsagris@uoc.gr.
"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."
dtpxg,qtpxg,ptpxg
x <- rtpxg(100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.