Skip to contents

Thin extender over metafor::rma that fits a (possibly moderated) random- or fixed-effects meta-analytic model to per-study effect sizes and their sampling variances.

Usage

morie_meta_rma(yi, vi, data = NULL, ...)

Arguments

yi

Numeric vector of study-level effect-size estimates.

vi

Numeric vector of sampling variances corresponding to yi.

data

Optional data frame to evaluate yi, vi and any moderators against; passed straight through to metafor::rma.

...

Further arguments forwarded to metafor::rma (e.g. mods, method, weights, test, level, slab).

Value

A list with $method = "metafor::rma" and $raw (an rma.uni object with the pooled estimate, heterogeneity statistics and moderator effects).

Examples

if (FALSE) { # \dontrun{
  if (requireNamespace("metafor", quietly = TRUE)) {
    set.seed(1)
    k <- 12
    vi <- stats::runif(k, 0.02, 0.10)
    yi <- stats::rnorm(k, mean = 0.3, sd = sqrt(vi))
    morie_meta_rma(yi = yi, vi = vi)
  }
} # }