pseudoTfromPvalue | R Documentation |
Convert p-values to t-statistics
pseudoTfromPvalue(p, df, sign, replaceZero = TRUE)
p |
Numeric, a numeric vector between 0 and 1. |
df |
Numeric, degree of freedom. |
sign |
Logical or integer, positive numbers or |
replaceZero |
Logical, whether small p values or 0 should be replaced by a sufficient small number. Default and recommended: |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.