Exercises: ANOVA

The dataset InsectSprays is loaded in R already, and has data on the count of insects in areas treated with one of 6 different types of sprays. The dataset is already in the proper format for the oneway analysis of variance - a vector with the data (count), and one with a factor describing the level (spray).

  1. Make a side-by-side boxplot to see if the means are equal.
  2. Perform a oneway ANOVA to check if they are. Do they agree?
data(InsectSprays)