ABSTRACT

This chapter focuses on three statistical tests that are common in introductory statistics classes: one-way analysis of variance (ANOVA), chi-square tests, and testing standard deviations. It uses the iris data, which is available in R and loaded with the command data(iris), to illustrate a one-way ANOVA by testing the mean sepal width of three species. The chapter uses chisq.test for a goodness of fit test, with equal and unequal proportions, and a homogeneity test, which is performed the same way as an independence test. It also uses the iris data again for examples of testing standard deviations or variances. The data is loaded with data and the structure of the data is displayed by str. A useful function to see the number of species is unique.