cvmts.test {CvM2SL2Test}R Documentation

Computing Cramer-von Mises Two Sample Test Statistics

Description

The Cramer-von Mises two sample test is to test whether two independent samples were drawn from the same population.

Usage

cvmts.test(x, y)

Arguments

x an R object for the first sample, which is a vector
y an R object for the second sample, which is also a vector

Value

score of the Cramer-von Mises two-sample test for given samples

Author(s)

Yuanhui Xiao and Ye Cui, Department of Mathematics and Statistics Georgia State University Atlanta, GA 30302 matyxx@langate.gsu.edu

See Also

cvmts.test

Examples

## create a sample x of size 10 from the normal distribution with mean 0 and 
## standard deviation 1
x <- rnorm(10, 0, 1)

## create a sample y of size 10 from the normal distribution with mean 1 and
## standard deviation 1
y <- rnorm(10, 1, 1)

## Call the function to get the Cramer-von Mises test statistic
 cvm <- cvmts.test(x, y)

[Package CvM2SL2Test version 0.0-2 Index]