Description Usage Arguments Details Value Author(s) References See Also Examples
pCvM
computes the cumulative distribution function,
and qCvM
computes the quantile function,
of the null distribution of the
Cramer-von Mises test
statistic.
1 2 |
q |
Numeric vector of quantiles (values for which the cumulative probability is required). |
p |
Numeric vector of probabilities. |
n |
Integer. Sample size for the Cramer-von Mises test. |
lower.tail |
Logical. If |
For finite n
the cumulative distribution function is
approximated by the first order expansion
V(x) + psi1(x)/n,
equation (1.8) of
Csorgo and Faraway (1996).
qCvM
uses uniroot
to find the
quantiles.
A numeric vector of the same length as p
or q
.
Original Matlab code by Julian Faraway, translated to R by Adrian Baddeley.
Csorgo, S. and Faraway, J.J. (1996) The exact and asymptotic distributions of Cramer-von Mises statistics. Journal of the Royal Statistical Society, Series B 58, 221–234.
1 2 3 4 5 |
[1] 0.9996994
[1] 0.9985628
[1] 0.1224682
[1] 0.1188807
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.