Companion

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.

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.

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

Statistical apps

Explore power for two means or a confidence interval for a contrast in your browser.

Browse the book’s statistical apps

Instructor access

Instructors can use the book’s protected page to access teaching materials.

Open the instructor entrance

Still using the third edition? The Third Edition Archive provides temporary access to its computing examples, data, supplements, solutions, and Shiny apps.

Scroll to Top