Learn R Programming

fdars (version 0.3.3)

outliers.depth.trim: Outlier Detection using Trimmed Depth

Description

Detects outliers based on depth trimming.

Usage

outliers.depth.trim(fdataobj, trim = 0.1, dfunc = depth.mode, ...)

Value

A list of class 'outliers.fdata' with components:

outliers

Indices of detected outliers

depths

Depth values for all curves

cutoff

Depth cutoff used

Arguments

fdataobj

An object of class 'fdata'.

trim

Proportion of curves to consider as potential outliers. Default is 0.1 (curves with depth in bottom 10%).

dfunc

Depth function to use. Default is depth.mode.

...

Additional arguments passed to depth function.

Examples

Run this code
fd <- fdata(matrix(rnorm(200), 20, 10))
out <- outliers.depth.trim(fd, trim = 0.1)

Run the code above in your browser using DataLab