# A shift from .40 to .55.
cohen_h(p1 = 0.55, p2 = 0.40)
# The same raw difference near the floor is a larger h, since a difference is
# easier to detect where the proportions are small.
cohen_h(p1 = 0.20, p2 = 0.05)
# Its magnitude is the size irrespective of direction.
abs(cohen_h(p1 = 0.40, p2 = 0.55)$value)
Run the code above in your browser using DataLab