Created
March 26, 2021 18:20
-
-
Save bbdaniels/2f408ebe0e1e41e3bdd4c4c453c3599a to your computer and use it in GitHub Desktop.
Compare discrete distributions using bar graphs in Stata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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