cvmtsl1.test {CvM2SL1Test} | R Documentation |
Like its L2-counterpart, the L1-version of the Cramer-von Mises two sample test is to test whether two independent samples were drawn from the same population.
cvmtsl1.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 L1-version Cramer-von Mises two-sample test for given samples
Yuanhui Xiao Department of Mathematics and Statistics Georgia State University Atlanta, GA 30302 matyxx@langate.gsu.edu
cvmtsl1.pval
## 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 <- cvmtsl1.test(x, y)