Learn R Programming

xps (version 1.32.0)

unitestFilter-methods: Unitest Filter

Description

This method initializes the Unitest Filter. Applying an unitest such as the t.test to two groups returns the p-value for the test and the value of the t-statistic. The Unitest Filter allows to select only rows satisfying e.g. a certain p-value as cutoff. The Unitest Filter flags all rows with: flag = (variable <= cutoff)<="" code="">

Usage

unitestFilter(object) unitestFilter(object, value)<-

Arguments

object
object of class UniFilter.
value
character vector c(cutoff, variable).

Value

An initialized UniFilter object.

Details

The method unitestFilter initializes the following parameters:
cutoff:
the cutoff level for the filter.
variable: variable="pval" (default): p-value.
variable="stat": univariate statistic.
variable="padj": optional adjusted p-value.

Examples

Run this code
unifltr <- UniFilter()
unitestFilter(unifltr) <- c(0.01,"pval")
str(unifltr)

Run the code above in your browser using DataLab