ct.DirectionalTests: Compute Directional P-values from eBayes Output

View source: R/DirTest.R

ct.DirectionalTestsR Documentation

Compute Directional P-values from eBayes Output

Description

This function produces two sets of one-sided P-values derived from the moderated t-statistics produced by eBayes.

Usage

ct.DirectionalTests(fit, contrast.term = NULL)

Arguments

fit

An object of class MArrayLM containing, at minimum, a df.residual slot containing the appropriate degres of freedom for each test, and a t slot containing t statistics.

contrast.term

If a fit object with multiple coefficients is passed in, a string indiating the coefficient of interest.

Value

A matrix object with two numeric columns, indicating the p-values quantifying the evidence for enrichment and depletion of each feature in the relevant model contrast.

Author(s)

Russell Bainer

Examples

data('fit')
ct.DirectionalTests(fit)

RussBainer/gCrisprTools documentation built on Nov. 5, 2022, 2:35 p.m.