appendPseudoT: Append degree of freedom and pseudo t-statistics to dgeTable

View source: R/pseudoT.R

appendPseudoTR Documentation

Append degree of freedom and pseudo t-statistics to dgeTable

Description

Append degree of freedom and pseudo t-statistics to dgeTable

Usage

appendPseudoT(edgeResult, dgeTable)

Arguments

edgeResult

An EdgeResult object

dgeTable

A data.frame, derived from dgeTables or dgeTable usually.

Value

A new data.frame with two new columns, df and pseudoT, containing degree of freem and the (pseudo) t-statistic, respective.y The function relies on the fact that the degree of freedom ('df.residual' in GLM result) is the same for all genes. If this is not the case, it will use the 'FeatureName' column in gene annotation to match the degree of freedoms. The function is only used internally by dgeTablesWithPseudoT and dgeTableWithPseudoT.

Note

the lower.tail option in qt is not vectorized, therefore the sign should be provided separately.


bedapub/ribiosNGS documentation built on Feb. 10, 2025, 12:34 a.m.