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