Skip to contents

auc_to_r() is retained as a backward-compatible alias for auc_to_point_biserial() with base_rate = .50. New code should use the more explicit conversion family: auc_to_rank_biserial(), auc_to_d_equal_variance(), d_to_point_biserial(), and auc_to_point_biserial().

Usage

auc_to_r(auc, base_rate = 0.5)

Arguments

auc

Area under the ROC curve. Must be in (0, 1) because AUC values of 0 or 1 imply infinite d under the equal-variance binormal model.

base_rate

Proportion in the focal or successful group, usually denoted \(p\). Must be in (0, 1). The default is .50.

Value

Numeric vector of point-biserial correlations.

References

Rice, M. E., & Harris, G. T. (2005). Comparing effect sizes in follow-up studies: ROC area, Cohen's d, and r. Law and Human Behavior, 29(5), 615-620.

Salgado, J. F. (2018). Transforming the area under the normal curve (AUC) into Cohen's d, Pearson's r_pb, odds-ratio, and natural log odds-ratio: Two conversion tables. The European Journal of Psychology Applied to Legal Context, 10(1), 35-47.

Examples

# Backward-compatible alias; prefer auc_to_point_biserial().
auc_to_r(.75)
#> [1] 0.4304822