What’s This?

This site provides a compilation of examples from the STAT2 textbook by Cannon et al. using RMarkdown. There are videos for the selected examples demonstrating how the graphs and analysis could be done in R. There are also Markdown scripts that might be used to attempt these examples on your own.

Note that the videos/Markdown files are meant to supplement the examples in the textbook.

In order to use the Markdown files here, you will need to install the Stat2Data package by typing:

install.packages("Stat2Data")

We’ll also be using the mosaic package (see Project MOSAIC), which is pre-installed for you at the Amherst R Server.


Chapter 1

Example Choose Fit Assess Use
Porsche Prices Rmd . HTML . Video Rmd . HTML . Video Rmd . HTML . Video Rmd . HTML . Video
Doctors and Hospitals I Rmd . HTML . Video Rmd . HTML . Video Rmd . HTML
Doctors and Hospitals II Rmd . HTML . Video Rmd . HTML . Video Rmd . HTML . Video Rmd . HTML . Video
Butterfly Ballot Rmd . HTML . Video Rmd . HTML . Video

Chapter 2

Example Links
Porsche Cars Rmd . HTML . Video

Chapter 3

Example Links
NFL Wins Rmd . HTML . Video
Perch Weights Rmd . HTML . Video

Chapter 4

Example Links
House Prices Rmd . HTML . Video
First Year GPA Rmd . HTML . Video
Butterfly Ballots Rmd . HTML . Video

Chapter 5

Example Links
Fruitflies (Part 1) Rmd . HTML . Video
Diamonds Rmd . HTML . Video
Cancer Survival Rmd . HTML . Video
Hawks Rmd . HTML . Video
Fruitflies (Part 2) Rmd . HTML . Video

Chapter 6

Example Links
River Iron Rmd . HTML . Video
Pig Feed Rmd . HTML . Video
Ethanol Rmd . HTML . Video

Chapter 7

Example Links
Fruitflies Rmd . HTML . Video (Part 1) . Video (Part 2)
Sandwich Ants Rmd . HTML . Video
Walking Babies Rmd . HTML . Video

Chapter 9

Example Links
Medical School GPA Rmd . HTML . Video
Golfing Rmd . HTML . Video

Credits

Thanks to Pei Gong ’18 for contributing the Markdown files for Chapter 5 onwards.

Thanks to Project MOSAIC for generously supporting the production of these videos.