orrisk
Risks behind an odds ratio
orrisk(or, rate, share)crimlab.orrisk(or, rate, share)crimlab orrisk --or VALUE --rate VALUE --share VALUEAn 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").
Parameters
Section titled “Parameters”orThe odds ratio: one positive number.
rateThe overall rate of the outcome, strictly between 0 and 1.
shareThe exposed share of the population, strictly between 0 and 1.
Returns
Section titled “Returns”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.
Examples
Section titled “Examples”orrisk(or = 3, rate = 0.4, share = 0.5)Generated from the R help page: orrisk in the R reference.