
Last chance! 50% off unlimited learning
Sale ends in
ksTest(x, ...)
## S3 method for class 'default':
ksTest(x, y, ..., alternative = c("two.sided", "less",
"greater"), exact = NULL)
## S3 method for class 'formula':
ksTest(x, data = NULL, ..., alternative = c("two.sided",
"less", "greater"), exact = NULL)
ks.test
.ks.test
.NULL
or a logical that indicates whether an exact p-value should be computed. See ks.test
. Not available if ties are present, nor for the one-sided two-sample case.x
.y
.ks.test
.ks.test
except that a formula may be used for the two-sample situation. The default version is simply a pass through to ks.test
. See ks.test
for more details.ks.test
.## see ks.test for other examples
x <- rnorm(50)
y <- runif(30)
df <- data.frame(dat=c(x,y),grp=rep(c("X","Y"),c(50,30)))
## one-sample (from ks.test) still works
ksTest(x+2, "pgamma", 3, 2)
ks.test(x+2, "pgamma", 3, 2)
## first two-sample example in ?ks.test
ksTest(x,y)
ks.test(x,y)
## same as above but using data.frame and formula
ksTest(dat~grp,data=df)
Run the code above in your browser using DataLab