View source: R/two2one_tailed.R
two2one_tailed | R Documentation |
Convert 2-tailed into 1-tailed p-values, possibly using signs of associated statistics, from a matrix-like object.
two2one_tailed(
tab,
p.cols = "p|PValue",
stat.cols = "logFC|slope|cor|rho|Direction",
alternative = c("greater", "less", "Up", "Down"),
nperm = NULL
)
tab |
Matrix-like object with statistical columns, some containing p-values. |
p.cols |
Indices or |
stat.cols |
Indices or |
alternative |
Direction of change: either |
nperm |
Number of rotations used to estimate the p-values from |
matrix of p-values.
Phipson & Smyth (2010). Permutation P-values Should Never Be Zero: Calculating Exact P-values When Permutations Are Randomly Drawn. Statistical Applications in Genetics and Molecular Biology, 9(1).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.