map_robust | R Documentation |
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)
.
map_robust(x)
x |
The dataset or subset to perform meta-analysis on. |
dat |> map_robust()
will return the meta-analytic estimate for the whole dataset.
A tibble with meta-analysis results.
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.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.