Exercises 12.14 - 12.22 require material through Section 12.4.
Suppose you have 6 groups of 15 observations each. Groups $1-3$ are normal with mean 0 and standard deviation 3, while groups 4-6 are normal with mean 1 and standard deviation 3. Compare via simulation the power of the following tests of $H_0: \mu_1=\cdots=\mu_6$ versus the alternative that at least one pair is different at the $\alpha=.05$ level.
a. One-way ANOVA.
b. pairwise.t.test, where we reject the null hypothesis if any of the paired $p$-values are less than 0.05 .
The next two exercises use the data set flint from the fosdata package. The data set fosdata: :flint contains data on lead levels in water samples taken from Flint, Michigan, during the "Flint water crisis" of 2015. Three lead measurements were taken at each house, $\mathrm{Pb} 1, \mathrm{~Pb} 2$, and Pb 3 , on first draw, after 45 seconds, and after 2 minutes of water running. As observed in 9.16, the lead levels are highly skew.