Find R, SPSS, and SAS examples, explore a dataset, or check a selected exercise.
R Computing · SPSS Computing · SAS Computing · Complete downloads · Data · Solutions · Supplements · Apps
Read the examples online, or save the complete R companion for offline use.
R Computing
Choose a chapter below or read all 16 chapters on one page. The complete offline collection includes all chapters and their index.
- The Logic of Experimental Design and Analysis
- Drawing Valid Inferences from Experiments
- Introduction to Model Comparisons: One-Way Between-Subjects Designs
- Individual Comparisons of Means
- Testing Several Contrasts: The Multiple-Comparisons Problem
- Trend Analysis
- Two-Way Between-Subjects Factorial Designs
- Higher-Order Between-Subjects Factorial Designs
- Designs with Covariates: ANCOVA and Blocking
- Designs with Random or Nested Factors
- One-Way Within-Subjects Designs: Univariate Approach
- Higher-Order Designs with Within-Subjects Factors: Univariate Approach
- One-Way Within-Subjects Designs: Multivariate Approach
- Higher Order Designs with Within-Subjects Factors: The Multivariate Approach
- An Introduction to Mixed-Effects Models: Within-Subjects Designs
- An Introduction to Mixed-Effects Models: Nested Designs
SPSS Computing
Explore SPSS menus and syntax with worked examples from the third-edition companion. The syntax guides retain their original second-edition table numbers. Fourth-edition updates will appear here as they are ready.
Browse SPSS walkthroughs by chapter or read the syntax examples.
SAS Computing
Read or download the SAS programs and data from the third-edition examples. Fourth-edition updates will appear here as they are ready.
Browse SAS programs by chapter or get the fourth-edition SAS data.
Student solutions
Student Solutions Manual (PDF) includes worked solutions for the exercises marked with an asterisk in the book.
Tutorials and extensions
Download any tutorial or chapter extension as a PDF, or open the complete Tutorials and Extensions volume (PDF).
Chapter and exercise data
These 151 datasets accompany the fourth edition. Choose a single file or download the complete collection.
- Download CSV files (ZIP). Unzip and open a dataset in a spreadsheet or import it into your statistical software.
- Download SAS files (ZIP). Unzip and follow the included instructions to read one SAS transport file or import the whole collection.
Chapter 1, Exercise 20 uses counts from 45 studies. Download that table as a CSV file or a SAS dataset.
In R, install the AMCP package once with install.packages("AMCP"). Run data(package = "AMCP") to list its datasets. For Chapter 14 Exercises 23–28, use C12E22 through C12E27, respectively.
Use Table 3.1 in R or export it for other software
Table 3.1 gives six scores. Their mean is 104.
data("chapter_3_table_1", package = "AMCP")
chapter_3_table_1$IQ
# 96 102 104 104 108 110
mean(chapter_3_table_1$IQ)
# 104
Save the table as a CSV for a spreadsheet, an SPSS data file, or a SAS transport file. The SPSS and SAS commands use the haven package.
write.csv(chapter_3_table_1, "chapter_3_table_1.csv", row.names = FALSE)
haven::write_sav(chapter_3_table_1, "chapter_3_table_1.sav")
haven::write_xpt(chapter_3_table_1, "chapter_3_table_1.xpt")
Complete downloads
- Complete R companion (ZIP). Unzip the collection and open the index to read all 16 chapters offline. The saved copy captures this version. Visit the website for updates.
- All student solutions, tutorials, and extensions (ZIP). Includes both complete volumes, four individual tutorials, and five individual chapter extensions.
Statistical apps
Explore power for two means or a confidence interval for a contrast in your browser.
Instructor access
Instructors can use the book’s protected page to access teaching materials.
Still using the third edition? The Third Edition Archive provides temporary access to its computing examples, data, supplements, solutions, and Shiny apps.