es_from_rr_pval {metaConvert} | R Documentation |
Convert a risk ratio value and its p-value to three effect measures (SMD, OR, COR)
Description
Convert a risk ratio value and its p-value to three effect measures (SMD, OR, COR)
Usage
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
)
Arguments
rr |
risk ratio value |
logrr |
log risk ratio value |
rr_pval |
p-value of the risk ratio |
baseline_risk |
proportion of cases in the non-exposed group (only required for the |
n_exp |
number of participants in the exposed group (only required for the |
n_nexp |
number of participants in the non-exposed group (only required for the |
n_cases |
number of cases/events |
n_controls |
number of controls/no-event |
rr_to_or |
formula used to convert the |
smd_to_cor |
formula used to convert the SMD value (converted from RR) into a coefficient correlation (see |
reverse_rr_pval |
a logical value indicating whether the direction of the generated effect sizes should be flipped. |
Details
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.
Value
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/html/input.html | |
References
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.
Examples
es_rr <- es_from_rr_pval(
rr = 3.51, rr_pval = 0.001,
n_cases = 12, n_controls = 68
)