Learn R Programming

kim (version 0.6.1)

log_odds_ratio_to_d: Convert log odds ratio to Cohen's d

Description

Convert log odds ratio to Cohen'd (standardized mean difference), as illustrated in Borenstein et al. (2009, p. 47, ISBN: 978-0-470-05724-7)

Usage

log_odds_ratio_to_d(log_odds_ratio = NULL, unname = TRUE)

Arguments

log_odds_ratio

log odds ratio (the input can be a vector of values), which will be converted to Cohen's d

unname

logical. Should the names from the input be removed? (default = TRUE)

Examples

Run this code
if (FALSE) {
log_odds_ratio_to_d(log(1))
log_odds_ratio_to_d(log(2))
}

Run the code above in your browser using DataLab