plpoisson-package | R Documentation |
Prediction limits for Poisson distribution are useful when quantifying the uncertainty associated with predicting the occurrences of real life phenomena. The plpoisson package provides a set of functions to compute prediction limits of the inferred Poisson distribution under both, frequentist and Bayesian frameworks.
For frequentist prediction a common approach is to estimate the parameter based on the observed data firstly, then, to predict based on the estimated parameter. Different from the common approach of frequentist prediction, this approach does not require the estimation of the parameter. In a Bayesian setting, the uniform, Jeffreys and gamma distributions are used as priors when deriving the predictive posterior distribution.
Package: | plpoisson |
Type: | Package |
Version: | 0.3.1 |
Date: | 2024-09-29 |
License: | GPL-3 |
For a complete list of exported functions, use library(help = "plpoisson")
.
Valbona Bejleri, Luca Sartore and Balgobin Nandram
Maintainer: Luca Sartore drwolf85@gmail.com
Bejleri, V., & Nandram, B. (2018). Bayesian and frequentist prediction limits for the Poisson distribution. Communications in Statistics-Theory and Methods, 47(17), 4254-4271.
Bejleri, V., Sartore, L. & Nandram, B. (2021). Asymptotic equivalence between frequentist and Bayesian prediction limits for the Poisson distribution. Journal of the Korean Statistical Society \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s42952-021-00157-x")}
Bejleri, V. (2005). Bayesian Prediction Intervals for the Poisson Model, Noninformative Priors, Ph.D. Dissertation, American University, Washington, DC.
## Loading the package
library(plpoisson)
## Setting quantities of interest
xobs <- rpois(1, 50) # Number of the observed occurrencies
n <- 1 # Total number of the time windows of
# of size 's' observed in the past
s <- rgamma(1, 4, .567) # Fixed size of observed time windows
t <- rgamma(1, 3, .33) # Future time window
a <- 5 # Shape hyperparameter of a gamma prior
b <- 1.558 # Rate hyperparameter of a gamma prior
## Frequentist prediction limits
poiss(xobs, n, s, t)
## Bayesian prediction limits (with uniform prior)
poisUNIF(xobs, n, s, t)
## Bayesian prediction limits (with Jeffreys prior)
poisJEFF(xobs, n, s, t)
## Bayesian prediction limits (with gamma prior)
poisBayes(xobs, n, s, t, a, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.