powered by
stoufferMeta combines multiple weighted p-values into a meta-analysis p-value using Stouffer's Z-score method.
stoufferMeta
stoufferMeta(p, w = NULL)
A named numeric vector with the combined Z-score and p-value in the form
c(Z, pvalue).
c(Z, pvalue)
numeric vector of p-values.
numeric vector of weights.
# 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)
Run the code above in your browser using DataLab