* do-file for Supplementary Exercise 2.7 of IPS7e version 18 /* works also with versions 13-17 */ import delimited "R:\Chapter 2\ex02_007.csv" scatter beetles groupnum * a simple plot of values against group labels graph dot (asis) beetles, over(board) * a dotplot, but not very useful because the colors are not shown graph box beetles, over(color) * a standard boxplot bysort color: summarize beetles * the simplest way of getting descriptive statistics per group tabstat beetles, statistics( count mean sd min median max ) by(color) * a nicer display of the selected descriptive statistics