outlier: Compute outlying measures

Description Usage Arguments Value Author(s) See Also Examples

Description

Compute outlying measures based on a proximity matrix.

Usage

1
2
3
4
## Default S3 method:
outlier(x, cls=NULL, ...)
## S3 method for class 'snpRF'
outlier(x, ...)

Arguments

x

a proximity matrix (a square matrix with 1 on the diagonal and values between 0 and 1 in the off-diagonal positions); or an object of class snpRF.

cls

the classes the rows in the proximity matrix belong to. If not given, all data are assumed to come from the same class.

...

arguments for other methods.

Value

A numeric vector containing the outlying measures. The outlying measure of a case is computed as n / sum(squared proximity), normalized by subtracting the median and divided by the MAD, within each class.

Author(s)

Unknown (copied from randomForest package by Greg Jenkins)

See Also

snpRF

Examples

1
2
3
4
5
6
7
set.seed(1)
data(snpRFexample)
eg.rf <- snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
               xchrom.names=xchrom.snps.names,x.covar=covariates, 
               y=phenotype, proximity=TRUE)
plot(outlier(eg.rf), type="h",
     col=c("red", "green", "blue")[as.numeric(phenotype)])

Example output

snpRF 0.4

snpRF documentation built on May 2, 2019, 6:51 a.m.

Related to outlier in snpRF...