cohens_h
Calculate effect size (Cohen's h) for a difference between two proportions, quantifying the magnitude of the difference beyond statistical significance.
Instructions
Effect size for a difference between two proportions (Cohen, 1988), via the arcsine-square-root transform -- more appropriate than a raw percentage-point difference since it stabilizes variance across the full [0, 1] range. p1 and p2 are interchangeable (the sign of the result just indicates direction); use alongside two_proportion_z_test, which tells you whether a difference is significant but not how large it is. Returns a float (can be negative); rough guidance: ~0.2 small, ~0.5 medium, ~0.8 large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p1 | Yes | a proportion in [0, 1] | |
| p2 | Yes | a proportion in [0, 1] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |