stoufferMeta | R Documentation |
stoufferMeta
combines multiple weighted p-values into a meta-analysis p-value
using Stouffer's Z-score method.
stoufferMeta(p, w = NULL)
p |
numeric vector of p-values. |
w |
numeric vector of weights. |
A named numeric vector with the combined Z-score and p-value in the form
c(Z, pvalue)
.
# Define p-value and weight vectors
p <- c(0.1, 0.05, 0.3)
w <- c(5, 10, 1)
# Unweighted
stoufferMeta(p)
# Weighted
stoufferMeta(p, w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.