Learn R Programming

provenance (version 0.2)

KS.dist: Kolmogorov-Smirnov distance

Description

Returns the Kolmogorov-Smirnov distance between two samples

Usage

KS.dist(x, y)

Arguments

x
the first sample as a vector
y
the second sample as a vector

Value

  • a scalar value representing the maximum vertical distance between the two cumulative distributions

Examples

Run this code
fname <- system.file("DZ.csv",package="provenance")
DZ <- read.DZdata(fname)
print(KS.dist(DZ$x[['N1']],DZ$x[['T8']]))

Run the code above in your browser using DataLab