Learn R Programming

xps (version 1.32.0)

madFilter-methods: Median Absolute Deviation Filter

Description

This method initializes the Median Absolute Deviation Filter. The MAD Filter flags all rows with: flag = (mad >= cutoff)

Usage

madFilter(object) madFilter(object, value)<-

Arguments

object
object of class PreFilter.
value
numeric vector c(cutoff, epsilon).

Value

An initialized PreFilter object.

Details

The method madFilter initializes the following parameters:
cutoff:
the cutoff level for the filter.
Note, that epsilon has no effect on mad.

Examples

Run this code
prefltr <- PreFilter()
madFilter(prefltr) <- c(0.5,0.01)
str(prefltr)

Run the code above in your browser using DataLab