cvmts.test {CvM2SL2Test} | R Documentation |
The Cramer-von Mises two sample test is to test whether two independent samples were drawn from the same population.
cvmts.test(x, y)
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 |
score of the Cramer-von Mises two-sample test for given samples
Yuanhui Xiao and Ye Cui, Department of Mathematics and Statistics Georgia State University Atlanta, GA 30302 matyxx@langate.gsu.edu
cvmts.test
## 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)