rpredPG | R Documentation |
rpredPG returns a random sample of size n from the Poisson-Gamma predictive probability distribution given observations obs~Poi(theta) and theta~Gamma(alpha,beta)
rpredPG(S, y, alpha = 1, beta = 1)
S |
desired random sample size |
y |
vector of (observed) Poisson-distributed counts |
alpha |
sum of counts from beta prior observations for gamma prior distribution on theta |
beta |
number of prior observations for gamma prior distribution on theta |
Poisson-Gamma cumulative predictive probability
1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.