zy: Estimating the Relative Risk Based on the Odds Ratio

View source: R/zy.R

zyR Documentation

Estimating the Relative Risk Based on the Odds Ratio

Description

Estimating the relative risk based on the (adjusted) Odds Ratio from multiple logistic regression or other multiple regression models. The method was based on Zhang and Yu (JAMA, 1998)

Usage

zy(risk, oddsratio)

Arguments

risk

the risk rate of having a positive outcome in the control or unexposed group

oddsratio

odds ratio estimated from multiple logistic regression or other multiple regression models

Details

Primarily for the adjusted odds ratio, the estimated relative risk is given by:

odds ratio / (1 - risk + risk * odds ratio)

Value

the estimated relative risk

Author(s)

Zhu Wang

References

Zhang J, Yu KF (1998). What's the relative risk? A method of correcting the odds ratio in cohort studies of common outcomes. JAMA, 280(19), 1690-1.

Examples

zy(risk=0.18, oddsratio=2.25)

orsk documentation built on July 9, 2023, 6:11 p.m.