The Statistical Sleuth (3rd edition) in R

These files are intended to help describe how to undertake analyses introduced as examples in the first 13 chapters of the Third Edition of the Statistical Sleuth: A Course in Methods of Data Analysis (2013), the excellent text by Fred Ramsey and Dan Schafer. An equivalent for the second edition can be found at

This work leverages efforts undertaken by Project MOSAIC, an NSF-funded initiative to improve the teaching of statistics, calculus, science and computing in the undergraduate curriculum. In particular, we utilize the mosaic package, which was written to simplify the use of R for introductory statistics courses. A short summary of the R needed to teach introductory statistics can be found in the mosaic package vignette located here.

Other R packages used include MASS, Sleuth3, agricolae, car, gmodels, leaps and xtable.

We have include both formatted pdf files as well as the original knitr files which were used to generate the output. Knitr is an elegant, flexible and fast means to undertake reproducible analysis and dynamic report generation within R and RStudio. Comments, suggestions and corrections welcomed.

Nicholas Horton, Linda Loi, Kate Aloisio, and Ruobing Zhang (last updated January 21, 2013)

pdf and knitr files