OR_to_d: OR_to_d

Description Usage Arguments Value Examples

View source: R/OR_to_d.R

Description

Approximate conversion of Odds Ratios to Cohen's d values Using the method proposed by Hasselblad & Hedges (1995, Equation 5, p. 170): d = log(OR)*(sqrt(3)/pi). S<c3><a1>nchez-Meca, Mar<c3><ad>n-Mart<c3><ad>nez & Chac<c3><b3>n-Moscoso's (2003) simulation study demonstrated this method to have adequate coverage and bias, although poorer than other methods. However, this method has the benefit of being simplest to implement, and is therefore useful for demonstrations purposes. For example, converting Odds Ratios to Cohen's d just for reader familiarity to illustrate the size of an effect. Note that this approximation does not take the base rate of the behaviour into account, which can be particularly influential on the Odds Ratio when they are low (see Chen, Cohen & Chen, 2010 for conversion tables for low baserates).

Usage

1
OR_to_d(OR)

Arguments

OR

The numeric (or vector of numeric) Odds Ratio to be converted.

Value

Returns a numeric Cohen's d value.

Examples

1
2
3
4
5
# Convert a single Odds Ratio
OR_to_d(2.13)

# Conert multiple Odds Ratios (e.g., OR and its CIs)
OR_to_d(c(26.26, 15.78, 43.69))

ianhussey/timesavers documentation built on May 18, 2019, 1:28 a.m.