Description Usage Arguments Value Examples
Compute the Cramer-von Mises statistic W^2 and a corresponding P-value for testing the hypothesis that a sample comes from a Poisson distribution with mean to be estimated from the data The P-value is computed by conditional sampling using nmc samples from the conditional distribution of x given sum(x) for a Poisson distribution. This distribution is multinomial.
1 2 3 4 5 6 | CvM.poisson.pvalue.bootstrap(
x,
nmc = 200,
return.samples = FALSE,
print = TRUE
)
|
x |
A random sample. |
nmc |
The size of Monte Carlo. |
return.samples |
Logical, if TRUE return the given sample. |
print |
Logical, if TRUE print the statistic and p-value. |
CvM.poisson.pvalue.bootstrap gives Cramer-von Mises statistic and its p-value.
1 2 3 | x= rpois(100,2)
CvM.poisson(x)
CvM.poisson.pvalue.bootstrap(x,return.samples=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.