Skip to contents

Calculates Cliff's delta, a non-parametric effect size that quantifies the degree of overlap between two distributions. The value ranges from -1 to 1, where:

  • -1: all values in comp are greater than those in ref

  • 0: complete overlap between distributions

  • 1: all values in ref are greater than those in comp

Usage

es_cdelta(ref, comp)

Arguments

ref

Numeric vector representing the reference group.

comp

Numeric vector representing the comparator group.

Value

A single numeric value: Cliff's delta.

Details

The effect size is calculated as the scaled difference in dominance between groups. Missing or infinite values are removed with a message.

References

Cliff, N. (1993). Dominance statistics: Ordinal analyses to answer ordinal questions. Psychological Bulletin, 114(3), 494–509. doi:10.1037/0033-2909.114.3.494

See also

Examples

ref <- rnorm(100, mean = 0)
comp <- rnorm(100, mean = 1)
es_cdelta(ref, comp)
#> [1] 0.4866