ks2Test(x, y, title = NULL, description = NULL)"htest"
a different output report is produced. The classical tests presented
here return an S4 object of class "fHTEST". The object contains
the following slots:"htest".@test returns an object of class "list"
containing (at least) the following elements:ks2Test performs a Kolmogorov--Smirnov two sample test
that the two data samples x and y come from the same
distribution, not necessarily a normal distribution. That means that
it is not specified what that common distribution is.Lehmann E.L. (1986); Testing Statistical Hypotheses, John Wiley and Sons, New York.
## rnorm -
# Generate Series:
x = rnorm(50)
y = rnorm(50)
## ks2Test -
ks2Test(x, y)Run the code above in your browser using DataLab