meta_contrasts: Meta-analysis of contrasts

View source: R/metafuns.R

meta_contrastsR Documentation

Meta-analysis of contrasts

Description

This function performs a meta-analysis on a list of contrast results obtained from different studies or tests.

Usage

meta_contrasts(cres, weighting = c("inv_var", "equal"))

Arguments

cres

A list of contrast results, where each element of the list contains the results for a particular study or test.

weighting

A character string specifying the weighting method to use for the meta-analysis. Options are "inv_var" (inverse variance weighting) or "equal" (equal weighting). Default is "inv_var".

Value

A list containing meta-analysis results for each contrast, including:

  • estimateA matrix of the combined contrast estimates.

  • seA matrix of the pooled standard errors.

  • statA matrix of the combined z-scores.

  • probA matrix of the combined p-values.

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

Examples

# Assuming `cres` is a list of contrast results obtained from different studies or tests
# meta_results <- meta_contrasts(cres)
# print(meta_results)

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