Appendix B — Datasets

Every dataset used in this textbook is listed below with a one-line description, its source package, and the chapters where it appears. Every dataset is also available as a CSV in this book’s datasets/ folder for use with Jamovi or any other tool.

B.1 From the openintro R package

These datasets ship with the openintro R package. Install with install.packages("openintro") and access via openintro::name or data(name) after library(openintro). Each name below links to the package’s documentation page.

Dataset Description Where used
antibiotics Antibiotic vs. symptomatic treatment for acute sinusitis Ch 3
avandia Cardiovascular problems in patients on Avandia vs. other diabetes drug Ch 7
bac Blood-alcohol content vs. beers consumed Ch 20, 21
babies_crawl Average crawling age vs. birth-month temperature Ch 19, 21
bdims Body measurements (girths, diameters, sex) of 507 physically active adults Ch 13, 19, 20
biontech_adolescents Pfizer-BioNTech COVID-19 vaccine trial in 12–15-year-olds Ch 1
births14 1000 births in North Carolina, 2014 (birth weight, weeks, mom’s habits) Ch 13, 14, 20
china Newborn health outcomes vs. rural/urban location in China Ch 17
cia_factbook 259 country-level indicators (life expectancy, GDP, births) from the CIA Ch 2, 4
coast_starlight Distances and travel times between stops on Amtrak’s Coast Starlight Ch 19, 20
corr_match Scatterplots with known correlations for the match-r-to-plot exercise Ch 19
county_2019 2019 US Census county-level statistics Ch 20
county_complete Full US county socioeconomic dataset (many years, many variables) Ch 2, 4
daycare_fines Late-pickup counts at 10 daycare centers before/during/after a fine Ch 1
epa2021 2021 EPA vehicle fuel economy Ch 14
exam_grades Course grades and exam scores in a college statistics course Ch 19
friday Traffic and admissions counts on Friday the 6th vs. the 13th Ch 14
heart_transplant Stanford heart-transplant study — survival by treatment Ch 3, 7, 12
hsb2 High School and Beyond survey subsample (reading, writing, math scores) Ch 14
immigration Public opinion on immigration policy by age group Ch 3
lizard_habitat Lizard sun/partial/shade preference by habitat Ch 16
lizard_run Sprint speed of lizards under two temperature conditions Ch 14
loan50 50 personal loans (income, rate, term, purpose) from Lending Club Ch 4, 5
mammals Body/brain weight and other traits for 62 mammal species Ch 5
mcu_films Marvel Cinematic Universe Infinity Saga films (runtimes, gross) Ch 1
migraine Acupuncture vs. control for migraine pain relief Ch 1
nyc_marathon NYC Marathon winning times by year and gender Ch 5
oscars Best Actor and Best Actress Oscar winner ages Ch 5
pm25_2022_durham Daily PM2.5 air-quality readings, Durham NC 2022 Ch 4
possum Body measurements of 104 mountain brushtail possums Ch 19, 20, 21
seattlepets Registered pets in Seattle (species, names, breed) Ch 1
sinusitis Antibiotic vs. symptomatic sinusitis treatment (paired randomized trial) Ch 1
smoking Smoking status, demographics for 1,691 UK residents Ch 1
starbucks Nutrition information for Starbucks menu items Ch 21
urban_owner Homeownership rates by state in urban vs. rural counties Ch 21
us_temperature US city temperature paired sample (January vs. July) Ch 14
yawn MythBusters’ contagious-yawning experiment Ch 12

B.2 From other R packages

Dataset Package Description Where used
run17 cherryblossom 2017 Cherry Blossom race times and runner demographics Ch 1
usairports airports US airport locations and characteristics Ch 1
penguins palmerpenguins Palmer Archipelago penguins (species, bill/flipper/mass) Ch 1
ukbabynames ukbabynames UK baby name popularity by year and nation Ch 1
un_votes unvotes UN General Assembly vote records Ch 1

Install with install.packages("packagename").

B.3 UWL-local datasets

These CSVs are hosted alongside the book and referenced in projects and labs.

Dataset Description
ai_tool_use.csv UWL student survey: AI-tool use by age group (small, categorical — good for two-way tables and inference for two proportions)
class_survey.csv UWL student survey: year, housing, study hours, sleep hours, commute (mixed quantitative + categorical — good for a full EDA project)
flying_etiquette.csv FiveThirtyEight survey on in-flight etiquette (many categorical variables — rich for chi-square practice)

B.4 Exercise datasets bundled with this book

Four CSVs live in chapters/data/ rather than in an R package, because the exercises that use them build their figures when the book is rendered. All four are redistributed unchanged from Introduction to Modern Statistics, which is licensed CC BY-SA 3.0 — the same license as this book. The original data sources are listed so you can go back to them.

Dataset Description Original source Where used
meat.csv Meat and carbohydrate consumption vs. life expectancy in 175 countries, averaged over 2011–2013 You et al. (2022) Ch 5, 19
netflix_titles.csv 7,788 Netflix titles with type, rating, production country, and release year TidyTuesday, 2021-04-20, from a Kaggle dataset Ch 1
stanford-open-policing-combined-data.csv Traffic-stop summary statistics (stop, search, arrest, and citation rates) by county and driver race Stanford Open Policing Project (Pierson et al. 2020) Ch 1
survey.csv GPA and major for students in an introductory statistics course at Duke University IMS exercise data Ch 17

B.5 Using the datasets

In Jamovi or another statistics package. Every dataset above is downloadable as a CSV from the openintro website (e.g., https://www.openintro.org/data/csv/<name>.csv), or as tab-separated/txt/rdata from the same page. The UWL-local files are linked directly above.

In R. After installing the source package:

library(openintro)
data(penguins, package = "palmerpenguins")  # if the dataset is in another package
head(mcu_films)                              # peek at the first rows
?mcu_films                                   # open the documentation

Full openintro dataset catalog. The complete list of openintro datasets (400+, not all used in this book) lives at openintrostat.github.io/openintro/reference/.

About this appendix

The list above is auto-generated by scanning chapter and exercise source files for named dataset references. If you spot a dataset used in the book that isn’t listed, please report it via the Report an Issue — Textbook board or annotate the offending chapter in the 145 Textbook Review Hypothesis group.

Pierson, Emma, Camelia Simoiu, Jan Overgoor, Sam Corbett-Davies, Daniel Jenson, Amy Shoemaker, Vignesh Ramachandran, et al. 2020. “A Large-Scale Analysis of Racial Disparities in Police Stops Across the United States.” Nature Human Behaviour 4 (7): 736–45. https://doi.org/10.1038/s41562-020-0858-1.
You, Wenpeng, Renata Henneberg, Arthur Saniotis, Yanfei Ge, and Maciej Henneberg. 2022. “Total Meat Intake Is Associated with Life Expectancy: A Cross-Sectional Data Analysis of 175 Contemporary Populations.” International Journal of General Medicine 15: 1833–51. https://doi.org/10.2147/IJGM.S333004.