* do-file for Supplementary Exercise 1.145 of IPS7e version 13 /* works also with version 14 */ import delimited "h:\VHM\VHM801\Datasets\csv\Chapter 1\ex01_145.csv" * descriptive statistics bysort sex: summarize satm gpa, detail * boxplots graph box satm, over(sex) graph box gpa, over(sex) * note that the gpa boxplot for men has three lower suspected outliers * in Stata, but only two in Minitab; this is due to small differences in * formulae for the calculation of percentiles (here, the quartiles) * quantile plots qnorm satm if sex==1 qnorm satm if sex==2 qnorm gpa if sex==1 qnorm gpa if sex==2