Learn R Programming

REPPlab (version 0.9.6)

print.epplabOutlier: Print an epplabOutlier Object

Description

Prints an epplabOutlier object.

Usage

# S3 method for epplabOutlier
print(x, ...)

Arguments

x

Object of class epplabOutlier.

...

Additional parameters

Author

Klaus Nordhausen

Details

The print function displays only the outlier matrix from the epplabOutlier object.

Examples

Run this code

# 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)
OUT

Run the code above in your browser using DataLab