pseudoTfromPvalue: Convert p-values to t-statistics

View source: R/pseudoT.R

pseudoTfromPvalueR Documentation

Convert p-values to t-statistics

Description

Convert p-values to t-statistics

Usage

pseudoTfromPvalue(p, df, sign, replaceZero = TRUE)

Arguments

p

Numeric, a numeric vector between 0 and 1.

df

Numeric, degree of freedom.

sign

Logical or integer, positive numbers or TRUE are interpreted as positive, and negative numbers or TRUE are interpreted as negative.

replaceZero

Logical, whether small p values or 0 should be replaced by a sufficient small number. Default and recommended: TRUE

Examples

pVals <- 10^(seq(-11,0))
signs <- rep(c(TRUE, FALSE), 6)
tVals <- pseudoTfromPvalue(pVals, 5, sign=signs)
logFCs <- rep(c(1.2,-1.2),6)
tValsLogFCs <- pseudoTfromPvalue(pVals, 5, sign=logFCs)

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