Introduction to the Practice of Statistics (6th edition) in R
Note from August, 2018: updated materials for IPS9 are available at https://nhorton.people.amherst.edu/ips9. The IPS6 materials are no longer being maintained.
These files are intended to help describe how to undertake analyses introduced as examples in the first chapters of the Sixth Edition of Introduction to the Practice of Statistics (2007), the excellent text by David Moore, George McCabe and Bruce Craig, using R. Similar materials are available for the second and third editions of the Statistical Sleuth.
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, 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 and Ben Baumer (last updated January 12, 2014)
pdf and knitr files
- Chapter 1 (Looking at Data Distributions): pdf knitr
- Chapter 2 (Looking at Data Relationships): pdf knitr
- Chapter 3 (Producing Data): pdf knitr
- Chapter 4 (Probability): pdf knitr
- Chapter 5 (Sampling Distributions): pdf knitr
- Chapter 6 (Introduction to Inference): pdf knitr
- Chapter 7 (Inference for Means): pdf knitr
- Chapter 10 (Inference for Regression): pdf knitr
- Chapter 11 (Multiple Regression): pdf knitr
- Chapter 12 (One-Way ANOVA): pdf knitr
- Chapter 16 (Resampling, Bootstrapping and Permutation Testing): pdf knitr
- Additional file needed to compile: language.sty
- Additional files which also may needed to compile: xcolor.sty, xstring.sty, and/or xstring.tex