meta_fixef: Fixed-effects meta-analysis

View source: R/metafuns.R

meta_fixefR Documentation

Fixed-effects meta-analysis

Description

This function performs a fixed-effects meta-analysis on input beta estimates and standard errors. It supports two types of weighting schemes: inverse-variance weighting and equal weighting.

Usage

meta_fixef(beta, se, weighting = c("inv_var", "equal"))

Arguments

beta

A numeric matrix of beta estimates from multiple studies or tests.

se

A numeric matrix of standard errors corresponding to the beta estimates.

weighting

A character string specifying the weighting scheme to use. Options are "inv_var" (default) for inverse-variance weighting and "equal" for equal weighting.

Value

A list containing the following elements:

  • estimateA numeric vector of the combined beta estimates.

  • seA numeric vector of the pooled standard errors.

  • statA numeric vector of the combined z-scores.

  • probA numeric vector of the combined p-values.

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

Examples

beta <- matrix(c(0.5, 1, 0.75), nrow=1)
se <- matrix(c(0.2, 0.15, 0.25), nrow=1)
result <- meta_fixef(beta, se, weighting = "inv_var")
print(result)

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