CvM.test: Two-sample Cramer-von Mises test

Description Usage Arguments Details Value Author(s) Examples

View source: R/CvM.test.R

Description

Wrapper for cramer.test, for more convenient result printing.

Usage

1
CvM.test(x, y, ...)

Arguments

x

a numeric vector of data values.

y

a numeric vector of data values.

...

additional arguments to cramer.test. See help of this function.

Details

See help of the cramer.test function for more explanations.

Value

statistic

test statistics.

p.value

p-value of the test.

alternative

a character string describing the alternative hypothesis.

method

a character string indicating the name of the test.

data.name

a character string giving the names of the data.

Author(s)

Maxime Herv<e9> <[email protected]> based on the function of Carsten Franz

Examples

1
2
3
4
set.seed(1109)
x <- rpois(30,2)
y <- rpois(30,3)
CvM.test(x,y)

Example output

*** Package RVAideMemoire v 0.9-68 ***

	Two-sample Cram<U+00E9>r-von Mises test

data:  x and y
T = 4.6, p-value = 0.002997
alternative hypothesis: two.sided

RVAideMemoire documentation built on Aug. 21, 2017, 5:07 p.m.