provided (a warning is issued when the sample size
is greater than 30 due to possible numerical instabilities).
When exact = FALSE (or when exact is unspecified
and the sample size is greater than 30) the classical
Kolmogorov-Smirnov null distribution of the test
statistic is used and resulting p-values are known to
be conservative though imprecise (see Conover (1972)
for details). In such cases, simulated p-values may
be desired, produced by the simulate.p.value=TRUE
option.
The function cvm.test() is similar in design to
ks.test(). Its first two arguments specify the data
and null distribution; the only extra option, type,
specifies the variant of the Cramér-von Mises test:
x a numerical vector of data values.
y an ecdf or step-function (stepfun) for specifying
the null model
type the variant of the Cramér-von Mises test; W2 is
the default and most common method, U2 is for
cyclical data, and A2 is the Anderson-Darling
alternative.
As with ks.test(), cvm.test() returns an object of