Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Compare discrete distributions using bar graphs in Stata
sysuse auto.dta, clear
local style "s(0) w(1) lc(none) discrete frac"
tw ///
(histogram rep78 if foreign == 1 ///
, fc(black%50) barwidth(0.9) `style') ///
(histogram rep78 if foreign == 0 ///
, fc(red%50) barwidth(0.8) `style')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment