Random Numbers from the TPPGX Distribution | R Documentation |
Generates random numbers form the Two Parameter Poisson Xgamma distribution.
rtppxg(n, alpha = 1, theta = 1)
n |
An integer indicating the desired sample size. |
alpha |
A positive real number. |
theta |
A positive real number. |
In order to obtain random numbers from the TPPXG distribution this function works in two parts. First it
generates n random \lambda
values where \lambda|\alpha,\theta \sim \text{TPXG}(\alpha,\theta)
. Given
this, it generates n numbers X where X|\lambda \sim \text{Poisson}(\lambda)
.
A numeric vector of size n containing random values from the TPPXG distribution.
Nikolaos Kontemeniotis.
R implementation and documentation: Nikolaos Kontemeniotis kontemeniotisn@gmail.com and Michail Tsagris mtsagris@uoc.gr.
"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."
dtppxg,qtppxg,ptppxg
x <- rtppxg(100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.