ppredPG | R Documentation |
ppredPG returns the cumulative predictive probability of future observation having value 1,...,xmax given observations obs~Poi(theta) and theta~Gamma(alpha,beta)
ppredPG(ypred, y, alpha = 1, beta = 1, lower = TRUE)
ypred |
non-negative integer count for which predictive probability is desired |
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 |
lower |
logical; if TRUE (default), probabilities are P(R<=q) otherwise P(R>q) |
Poisson-Gamma cumulative predictive probability
1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.