* do-file for Supplementary Exercise 1.10 of IPS7e version 13 /* works also with version 14 */ import delimited "H:\VHM\VHM801\Datasets\csv\Chapter 1\ex01_010.csv" summarize count * gives the mean only, multiply by n to get the sum display 2049833*6 * alternatively, use total command total count, cformat(%9.0f) graph bar (mean) count, over(ethnicity, label(angle(90))) graph pie count, over(ethnicity) angle(90)