scrape_meta {ConfoundedMeta}R Documentation

Convert forest plot or summary table to meta-analytic dataset


Given relative risks (RR) and upper bounds of 95% confidence intervals (CI) from a forest plot or summary table, returns a dataframe ready for meta-analysis (e.g., via the metafor package) with the log-RRs and their variances. Optionally, the user may indicate studies for which the point estimate is to be interpreted as an odds ratios of a common outcome rather than a relative risk; for such studies, the function applies VanderWeele (2017)'s square-root transformation to convert the odds ratio to an approximate risk ratio.


scrape_meta(.type = "RR", .est, .hi, .sqrt = FALSE)



RR if point estimates are RRs or ORs (to be handled on log scale); raw if point estimates are raw differences, standardized mean differences, etc. (such that they can be handled with no transformations)


Vector of study point estimates on RR or OR scale


Vector of upper bounds of 95% CIs on RRs


Vector of booleans (TRUE/FALSE) for whether each study measured an odds ratio of a common outcome that should be approximated as a risk ratio via the square-root transformation

[Package ConfoundedMeta version 1.3.0 Index]