Learn R Programming

orsk (version 1.0-8)

zy: 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)

Value

the estimated relative risk

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

Author

Zhu Wang

Details

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

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

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

Run this code
zy(risk=0.18, oddsratio=2.25)

Run the code above in your browser using DataLab