summary.epplabOutlier: Summarize an epplabOutlier Object

Description Usage Arguments Details Author(s) Examples

View source: R/summary.epplabOutlier.R

Description

Summarizes and prints an epplabOutlier object in an informative way.

Usage

1
2
## S3 method for class 'epplabOutlier'
summary(object, ...)

Arguments

object

Object of class epplabOutlier.

...

Additional parameters

Details

The main information provided here is a table with names of the observations which are considered outliers and in how many PP directions they are considered outliers. This function is useful if the data has been given row names.

Author(s)

Klaus Nordhausen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# creating data with 3 outliers
n <-300 
p <- 10
X <- matrix(rnorm(n*p),ncol=p)
X[1,1] <- 9
X[2,4] <- 7 
X[3,6] <- 8
# giving the data rownames, obs.1, obs.2 and obs.3 are the outliers.
rownames(X) <- paste("obs",1:n,sep=".")

PP<-EPPlab(X,PPalg="PSO",PPindex="KurtosisMax",n.simu=20, maxiter=20)
OUT<-EPPlabOutlier(PP, k = 3, location = median, scale = mad)
summary(OUT)

REPPlab documentation built on May 2, 2019, 8:58 a.m.