cvFilter-methods: Coefficient of Variation Filter

Description Arguments Details Value Author(s) Examples

Description

This method initializes the Coefficient of Variation Filter.
The coefficient of variation is the standard deviation divided by the absolute value of the mean.
The CV Filter flags all rows with: flag = (cv >= cutoff)

Usage

cvFilter(object)
cvFilter(object, value)<-

Arguments

object

object of class PreFilter.

value

numeric vector c(cutoff, trim, epsilon).

Details

The method cvFilter initializes the following parameters:

cutoff: the cutoff level for the filter.
trim: the trim value for trimmed mean (default is trim=0).
epsilon: value to replace mean (default is epsilon=0.01):
epsilon > 0: replace mean=0 with epsilon.
epsilon = 0: always set mean=1.

Note, that for epsilon = 0 the filter flags all rows with: stdev >= cutoff

Value

An initialized PreFilter object.

Author(s)

Christian Stratowa

Examples

1
2
3
prefltr <- PreFilter()
cvFilter(prefltr) <- c(0.3,0.0,0.01)
str(prefltr)

xps documentation built on Nov. 8, 2020, 6 p.m.