maxKSp {edd} | R Documentation |
compares a sample to reference distributions, identifying the closest reference by maximum KS p
maxKSp( x, is.centered=TRUE, dists=eddDistList, thresh=.1 )
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 |
a vector of classifications
X <- rbind( rnorm(30), runif(30), rchisq(30,1)) tX <- t(apply(X,1,centerScale)) apply(tX,1,maxKSp)