powered by
Returns an object similar to what is produced by ecdf, but based on a known discrete distribution.
ecdf
cdf.discrete(x, dist = c("binom", "geom", "hyper", "nbinom", "pois"), ...)
numeric vector of the observations.
character string naming a discrete distribution ("binom" by default).
"binom"
parameters of the distribution specified by dist.
dist
Maxime HERVE <maxime.herve@univ-rennes1.fr>
The function is intended to be used in goodness-of-fits tests for discrete distributions, such as proposed in the dgof package.
dgof
if(require(dgof)) { set.seed(1124) resp <- rpois(20,2) cvm.test(resp,cdf.discrete(resp,"pois",2)) }
Run the code above in your browser using DataLab