Learn R Programming

gofMC (version 1.1.2)

KS_D: KS_D

Description

Calculates the two-sided KS statistic given vectors for x and y

Usage

KS_D(x, y)

Arguments

x
a vector or matrix of real numbers
y
a vector or matrix of real numbers

Value

a vector of numbers with length equal to the number of trials (N)

Examples

Run this code
KS_D(c(1,2,3,4,5),c(1,2,3,4,4))
KS_D(matrix(runif(100),ncol=7),matrix(runif(100),ncol=7))

Run the code above in your browser using DataLab