Figure 1.1, page 321.
use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/teachers, clear tabulate t censor | censor t | 0 1 | Total -----------+----------------------+---------- 1 | 456 0 | 456 2 | 384 0 | 384 3 | 359 0 | 359 4 | 295 0 | 295 5 | 218 0 | 218 6 | 184 0 | 184 7 | 123 280 | 403 8 | 79 307 | 386 9 | 53 255 | 308 10 | 35 265 | 300 11 | 16 241 | 257 12 | 5 386 | 391 -----------+----------------------+---------- Total | 2207 1734 | 3941 sort censor histogram t, by(censor) freq discrete