maxKSp {edd}R Documentation

classify densities by maximum KS p-value

Description

compares a sample to reference distributions, identifying the closest reference by maximum KS p

Usage

maxKSp( x, is.centered=TRUE, dists=eddDistList, thresh=.1 )

Arguments

x matrix of samples, distributions to be classified by row
is.centered have data been brought to median 0, mad 1
dists list of instances of class eddDist
thresh p-value above which some test must lie, or else 'outlier' is declared

Details

Value

a vector of classifications

Examples

X <- rbind( rnorm(30), runif(30), rchisq(30,1))
tX <- t(apply(X,1,centerScale))
apply(tX,1,maxKSp)

[Package edd version 1.8.0 Index]