1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PoissonBinomial.R
\docType{package}
\name{PoissonBinomial-package}
\alias{PoissonBinomial}
\alias{PoissonBinomial-package}
\title{Efficient Exact and Approximate Implementations for Computing Ordinary and Generalized Poisson Binomial Distributions}
\description{
This package implements various algorithms for computing the probability mass
function, the cumulative distribution function, quantiles and random numbers
of both ordinary and generalized Poisson binomial distributions.
}
\section{References}{
Hong, Y. (2013). On computing the distribution function for the Poisson
binomial distribution. \emph{Computational Statistics & Data Analysis},
\strong{59}, pp. 41-51. \doi{10.1016/j.csda.2012.10.006}
Biscarri, W., Zhao, S. D. and Brunner, R. J. (2018) A simple and fast method
for computing the Poisson binomial distribution.
\emph{Computational Statistics and Data Analysis}, \strong{31}, pp.
216–222. \doi{10.1016/j.csda.2018.01.007}
Zhang, M., Hong, Y. and Balakrishnan, N. (2018). The generalized
Poisson-binomial distribution and the computation of its distribution
function. \emph{Journal of Statistical Computational and Simulation},
\strong{88}(8), pp. 1515-1527. \doi{10.1080/00949655.2018.1440294}
}
\examples{
# Functions for ordinary Poisson binomial distributions
set.seed(1)
pp <- c(1, 0, runif(10), 1, 0, 1)
qq <- seq(0, 1, 0.01)
dpbinom(NULL, pp)
ppbinom(7:10, pp, method = "DivideFFT")
qpbinom(qq, pp, method = "Convolve")
rpbinom(10, pp, method = "RefinedNormal")
# Functions for generalized Poisson binomial distributions
va <- rep(5, length(pp))
vb <- 1:length(pp)
dgpbinom(NULL, pp, va, vb, method = "Convolve")
pgpbinom(80:100, pp, va, vb, method = "Convolve")
qgpbinom(qq, pp, va, vb, method = "Convolve")
rgpbinom(100, pp, va, vb, method = "Convolve")
}
\seealso{
Useful links:
\itemize{
\item \url{https://github.com/fj86/PoissonBinomial}
\item Report bugs at \url{https://github.com/fj86/PoissonBinomial/issues}
}
}
\author{
\strong{Maintainer}: Florian Junge \email{florian.junge@mailbox.org}
}
|