This package documents the Paluck lab’s approach to meta-analysis, focusing on two papers in particular:
- “Preventing Sexual Violence —A Behavioral Problem Without a Behaviorally-Informed Solution"
- “The Contact Hypothesis Re-evaluated.”
Run the following R command:
remotes::install_github('setgree/PaluckMetaSOP', build_vignettes = TRUE)This package contains:
- Functions that implement the Paluck lab approach to meta-analysis
- Vignettes that walk through how to use the functions
- Datasets (
sv_dataandcontact_data) that accompany the two example metas and are used in the vignettes
After installation, run:
browseVignettes(package = "PaluckMetaSOP")We recommend going through the vignettes in order, but you can also pick and choose based on what seems relevant.
d_calc: a function for calculating standardized mean differences (SMDs) -- Cohen's D/Glass's ∆/etc.var_d_calc: a function for calculating the variance of your SMDs.
map_robust: This function is a tidyverse-friendly wrapper aroundmetafor::robust(), which is the flavor of meta-analysis we used in the two metas listed above
study_count: tidyverse-friendly function for counting studies in a grouping (the function assumes that each row in a dataset corresponds to a point estimate from a study, and studies are grouped by a variable calledunique_study_id)sum_lm: a tidyverse-friendly wrapper aroundsummary(lm()).sum_tab: a tidyverse-friendly version of R's built-intablefunction.
For more documentation, either see the vignettes or add a ? before any of the functions (e.g., ?PaluckMetaSOP::sum_tab).
To contribute:
- Clone this package:
git clone https://github.com/setgree/PaluckMetaSOP.git
- Add or amend functions and vignettes
- Open a pull request or create your own fork
The instructions in the first chapter of R packages should get you pretty far on the "building a package" side of things.