Learn R Programming

parameters (version 0.2.0)

odds_to_d: Conversion between (log)odds and standardized difference

Description

Enables a conversion between (log)odds and standardized difference using Cohen's (1988) formula \(\frac{\log(odds)\times\sqrt{3}}{\pi}\).

Usage

odds_to_d(odds, log = FALSE)

convert_odds_to_d(odds, log = FALSE)

d_to_odds(d, log = FALSE)

convert_d_to_odds(d, log = FALSE)

Arguments

odds

Odds values in vector or dataframe.

log

Are these Log odds (such as in logistic models)?

d

standardized difference values in vector or dataframe.

Value

Converted index.

References

  • S<U+00E1>nchez-Meca, J., Mar<U+00ED>n-Mart<U+00ED>nez, F., & Chac<U+00F3>n-Moscoso, S. (2003). Effect-size indices for dichotomized outcomes in meta-analysis. Psychological methods, 8(4), 448.

  • Borenstein, Michael, et al. "Converting among effect sizes." Introduction to meta-analysis (2009): 45-49.

Examples

Run this code
# NOT RUN {
odds_to_d(0.2)
odds_to_d(-1.45, log = TRUE)
# }

Run the code above in your browser using DataLab