dpredPG | R Documentation |
dpredPG returns the predictive probability of a future observation having value 1,...,x given observations obs~Poi(theta) and theta~Gamma(alpha,beta)
dpredPG(ypred, y, alpha = 1, beta = 1)
ypred |
vector of integers 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 |
Poisson-Gamma predictive probability
1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.