map_robust: Apply metafor::robust in a pipe sequence or to subsets using...

View source: R/map_robust.R

map_robustR Documentation

Apply metafor::robust in a pipe sequence or to subsets using purrr's split/map

Description

Performs robust meta-analysis on either data subsets or the whole dataset.. Its intended usage is in in context of the split/map & pipes paradigm: dat |> split(~some_var) |> map(map_robust).

Usage

map_robust(x)

Arguments

x

The dataset or subset to perform meta-analysis on.

Details

dat |> map_robust() will return the meta-analytic estimate for the whole dataset.

NOTE: If there is only one study in a cluster, this function will just reproduce that study's meta-analytic estimate verbatim. This is good for some circumstances but not others. Adapt to your needs.

Value

A tibble/data frame with meta-analysis results.


setgree/PrejMetaFunctions documentation built on April 28, 2024, 9:29 a.m.