map_robust: Perform robust meta-analysis (including in a pipe or split...

View source: R/map_robust.R

map_robustR Documentation

Perform robust meta-analysis (including in a pipe or split paradigm)

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.

Value

A tibble with meta-analysis results.

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.

Examples

# example 1: meta-analyze entire dataset
PaluckMetaSOP::sv_data |> map_robust()
# example 2: meta-analyze many subsetes and create overall table
## Not run: 
library(dplyr); library(purrr)
sv_data |> split(~behavior_type) |> map(map_robust) |>
 bind_rows(.id = "behavior_type")
 
## End(Not run)

setgree/PrejMetaFunctions documentation built on May 8, 2024, 6:38 p.m.