cvmtsl1.test {CvM2SL1Test}R Documentation

Computing L1-version Cramer-von Mises Two Sample Test Scores

Description

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.

Usage

cvmtsl1.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 L1-version 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

cvmtsl1.pval

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 <- cvmtsl1.test(x, y)

[Package CvM2SL1Test version 0.0-2 Index]