Learn R Programming

RVAideMemoire (version 0.9-45-2)

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

Description

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

Usage

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.

Value

  • statistictest statistics.
  • p.valuep-value of the test.
  • alternativea character string describing the alternative hypothesis.
  • methoda character string indicating the name of the test.
  • data.namea character string giving the names of the data.

Details

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

Examples

Run this code
set.seed(1109)
x <- rpois(30,2)
y <- rpois(30,3)
CvM.test(x,y)

Run the code above in your browser using DataLab