findOutliers(clstutils)
findOutliers()所属R语言包:clstutils
Identify outlier objects given a square distance matrix.
距离平方矩阵识别离群对象。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Outliers are defined as elements with edge length to the centermost element > cutoff. The distance threshold (cutoff) can be either specified, or calculated as a quantile of all pairwise distances in the matrix.
离群点被定义为边长的最中心的元素>截止元素。距离阈值(截止)可以是指定的,或作为位数计算矩阵中的所有成对距离。
用法----------Usage----------
findOutliers(mat, quant, cutoff)
参数----------Arguments----------
参数:mat
square matrix of distances
距离方阵
参数:quant
given all pairwise distances x, calculate distance threshold as quantile(x, quant). Values closer to 0 are more stringent.
给所有的X成对距离,计算距离阈值的位数(X,定量)。更严格的值接近0。
参数:cutoff
an absolute cutoff overriding quant
一个绝对的截止覆盖QUANT
值----------Value----------
Returns a boolean vector corresponding to margin of mat; outliers have a value of TRUE.
返回一个布尔向量相应的保证金垫;离群拥有一个真正的价值。
作者(S)----------Author(s)----------
Noah Hoffman
举例----------Examples----------
library(ape)
data(seqs)
data(seqdat)
dmat <- ape::dist.dna(seqs[seqdat$tax_name == 'Enterococcus faecium',],
pairwise.deletion=TRUE, as.matrix=TRUE, model='raw')
summary(dmat[lower.tri(dmat)])
outliers <- findOutliers(dmat, cutoff=0.015)
table(outliers)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|