meta_stouffer: Meta-analysis using Stouffer's method

View source: R/metafuns.R

meta_stoufferR Documentation

Meta-analysis using Stouffer's method

Description

This function performs a meta-analysis on input p-values and standard errors using Stouffer's method. Stouffer's method combines z-scores by weighting them by their inverse variance.

Usage

meta_stouffer(pval, se)

Arguments

pval

A numeric vector of p-values from multiple studies or tests.

se

A numeric vector of standard errors corresponding to the p-values.

Value

A list containing the following elements:

  • estimateA numeric vector of the weighted z-scores obtained using Stouffer's method.

  • seA numeric vector of the combined standard errors.

  • statSame as the estimate, the weighted z-scores.

  • probA numeric vector of the combined p-values.

  • stat_typeA character string indicating the type of statistic used, in this case "zfstat".

Examples

pval <- c(0.05, 0.01, 0.03)
se <- c(0.2, 0.15, 0.25)
result <- meta_stouffer(pval, se)
print(result)

bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.