help percentogram

Title

percentogram -- A histogram with equal-N rather than equal-width bins.

Syntax

percentogram var, bins(#) [graph options]

Description

percentogram A histogram where bins cover equal proportions
of the cases, not equal ranges of the variable. See
https://statmodeling.stat.columbia.edu/2023/04/13/the-percentogram-a-histogram-binned-by-percentages-of-the-cumulative-distribution-rather-than-using-fixed-bin-widths/
for a discussion.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

Using the ancillary file dyadsim.dta:

. sysuse nlsw88

. percentogram wage, bins(10) title("Wage, deciles")

. percentogram wage, bins(20) title("Wage, vintiles")

See also

Nick Cox did this already in 1999:

. ssc install eqprhistogram