or.r: or to r

or.rR Documentation

or to r

Description

odd ratio to correlation coefficient: please only use this conversion for "true" odd ratios calculated by or = ad/bc (a = # of exposed cases; b = # of exposed non-cases, c = # of unexposed cases, d = # of unexposed non-cases) for estiamted or derived from exponentiating the coefficient of a logistic regression, use expb.r() instead

Usage

or.r(or, n1, n2)

Arguments

or

"true" odd ratio calculated from or = ad/bc (see description above)

n1

cell size of group 1, if unknown, leave blank– defaults correction factor a = 4 in estimation of d (assumes n1 = n2)

n2

cell size of group 2, if unknown, leave blank– defaults correction factor a = 4 in estimation of d (assumes n1 = n2)

Examples

or.r(1.25)
or.r(1.25, 25, 34)


phoebehlam/michaela documentation built on Oct. 23, 2024, 4:10 p.m.