Convert a risk ratio value and its p-value to various effect size measures
es_from_rr_pval( rr, logrr, rr_pval, baseline_risk, n_exp, n_nexp, n_cases, n_controls, rr_to_or = "metaumbrella", smd_to_cor = "viechtbauer", reverse_rr_pval )
rr
: risk ratio valuelogrr
: log risk ratio valuerr_pval
: p-value of the risk ratiobaseline_risk
: proportion of cases in the non-exposed group (only required for the rr_to_or = "grant_CI"
and rr_to_or = "grant_2x2"
arguments).n_exp
: number of participants in the exposed group (only required for the rr_to_or = "grant_CI"
, rr_to_or = "grant_2x2"
arguments).n_nexp
: number of participants in the non-exposed group (only required for the rr_to_or = "grant_CI"
, rr_to_or = "grant_2x2"
arguments).n_cases
: number of cases/eventsn_controls
: number of controls/no-eventrr_to_or
: formula used to convert the rr
value into an odds ratio (see details).smd_to_cor
: formula used to convert the SMD value (converted from RR) into a coefficient correlation (see es_from_cohen_d
).reverse_rr_pval
: a logical value indicating whether the direction of the generated effect sizes should be flipped.This function estimates and converts between several effect size measures.
natural effect size measure | RR |
converted effect size measure | OR + NNT |
required input data | See 'Section 3. Risk Ratio' |
https://metaconvert.org/input.html |
This function uses the p-value of the (log) risk ratio to obtain the standard error (Section 6.3.2 in the Cochrane Handbook).
Then, calculations of es_from_rr_se
are applied.
es_rr <- es_from_rr_pval( rr = 3.51, rr_pval = 0.001, n_cases = 12, n_controls = 68 )
Higgins, J. P., Thomas, J., Chandler, J., Cumpston, M., Li, T., Page, M. J., & Welch, V. A. (Eds.). (2019). Cochrane handbook for systematic reviews of interventions. John Wiley & Sons.
Useful links