Learn R Programming

geostats (version 1.6)

ksdist: Kolmogorov-Smirnov distance matrix

Description

Given a list of numerical vectors, fills a square matrix with Kolmogorov-Smirnov statistics.

Usage

ksdist(dat)

Value

an object of class dist

Arguments

dat

a list of numerical data vectors

Examples

Run this code
data(DZ,package='geostats')
d <- ksdist(DZ)
mds <- cmdscale(d)
plot(mds,type='n')
text(mds,labels=names(DZ))

Run the code above in your browser using DataLab