poibin | R Documentation |
The cdf, pmf, quantile function, and random number generation for the Poisson binomial distribution.
ppoibin(kk, pp, method = "DFT-CF",wts=NULL)
dpoibin(kk, pp,wts=NULL)
qpoibin(qq, pp,wts=NULL)
rpoibin(m, pp,wts=NULL)
kk |
The values where the cdf or pmf to be evaluated. |
pp |
The vector for |
method |
"DFT-CF" for the DFT-CF method, "RF" for the recursive formula, "RNA" for the refined normal approximation, "NA" for the normal approximation, and "PA" for the Poisson approximation. |
wts |
The weights for |
qq |
The values where the quantile function to be evaluated. |
m |
The number of random numbers to be generated. |
See the reference for computational details.
Returns the entire cdf, pmf, quantiles, and random numbers.
Yili Hong [aut, cre], R Core Team [aut, cph]
Hong, Y. (2013). On computing the distribution function for the Poisson binomial distribution. Computational Statistics & Data Analysis, Vol. 59, pp. 41-51.
kk=0:10
pp=c(.1,.2,.3,.4,.5)
ppoibin(kk=kk, pp=pp, method = "DFT-CF",wts=rep(2,5))
ppoibin(kk=kk, pp=pp, method = "RF",wts=rep(2,5))
ppoibin(kk=kk, pp=pp, method = "RNA",wts=rep(2,5))
ppoibin(kk=kk, pp=pp, method = "NA",wts=rep(2,5))
ppoibin(kk=kk, pp=pp, method = "PA",wts=rep(2,5))
dpoibin(kk=kk, pp=pp,wts=rep(2,5))
qpoibin(qq=0:10/10,pp=pp,wts=rep(2,5))
rpoibin(m=2,pp=pp,wts=rep(2,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.