Skip to content

orrisk

Risks behind an odds ratio

orrisk(or, rate, share)

An odds ratio is not a relative risk: it lies further from 1, and by more the more common the outcome. Given the odds ratio, the overall rate of the outcome and the share exposed, this returns the two risks and the relative risk they imply. See proof("orrisk").

or

The odds ratio: one positive number.

rate

The overall rate of the outcome, strictly between 0 and 1.

share

The exposed share of the population, strictly between 0 and 1.

A named numeric vector: exposed and unexposed (the two risks), rr (their ratio) and or. A risk closer to 1 than a double can hold is returned as 1.

orrisk(or = 3, rate = 0.4, share = 0.5)

Generated from the R help page: orrisk in the R reference.