scrape_meta {MetaUtility} | R Documentation |
Convert forest plot or summary table to meta-analytic dataset
Description
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.
Usage
scrape_meta(type = "RR", est, hi, sqrt = FALSE)
Arguments
type |
|
est |
Vector of study point estimates on RR or OR scale |
hi |
Vector of upper bounds of 95% CIs on RRs |
sqrt |
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 |
References
VanderWeele TJ (2017). On a square-root transformation of the odds ratio for a common outcome. Epidemiology.