Enables a conversion between different indices of effect size, such as standardized difference (Cohen's d), correlation r or (log) odds ratios.
percentage_to_d(percentage, ...)d_to_percentage(d, ...)
convert_percentage_to_d(percentage, ...)
convert_d_to_percentage(d, ...)
d_to_r(d, ...)
r_to_d(r, ...)
convert_d_to_r(d, ...)
convert_r_to_d(r, ...)
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, ...)
r_to_odds(r, log = FALSE, ...)
convert_r_to_odds(r, log = FALSE, ...)
odds_to_r(odds, log = FALSE, ...)
convert_odds_to_r(odds, log = FALSE, ...)
odds_to_probs(odds, log = FALSE, ...)
# S3 method for data.frame
odds_to_probs(odds, log = FALSE, select = NULL, exclude = NULL, ...)
probs_to_odds(probs, log = FALSE, ...)
convert_odds_to_probs(odds, log = FALSE, ...)
convert_probs_to_odds(probs, log = FALSE, ...)
Percentage value (e.g., 0.01
for one percent).
Arguments passed to or from other methods.
Standardized difference value (Cohen's d).
Correlation coefficient r.
Odds values in vector or dataframe.
Take in or output log odds (such as in logistic models).
When a dataframe is passed, character or list of of column names to be transformed.
When a dataframe is passed, character or list of column names to be excluded from transformation.
Probability values.
Converted index.
d to r: d = 2 * r / sqrt(1 - r^2)
r to d: r = d / (sqrt(d^2 + 4))
odds to d: \(d = \frac{\log(odds)\times\sqrt{3}}{\pi}\)
d to odds: \(log(odds) = d * \frac{\pi}{\sqrt(3)}\)
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, M., Hedges, L. V., Higgins, J. P. T., & Rothstein, H. R. (2009). Converting among effect sizes. Introduction to meta-analysis, 45-49.
# NOT RUN {
r_to_d(0.5)
d_to_odds(d = 1.154701)
odds_to_r(odds = 8.120534)
d_to_r(d = 1)
r_to_odds(0.4472136, log = TRUE)
odds_to_d(1.813799, log = TRUE)
# }
Run the code above in your browser using DataLab