This page describes how to obtain the data files for the book Regression Analysis By Example by Samprit Chatterjee, Ali S. Hadi and Bertram Price.
Getting Files Over the Web
You can get the data files over the web from the tables shown below. The leftmost column gives you the description of the data file, followed by the data file in a SAS Data Step, and then the raw data file. The data sets are ordered by chapter number and page number within each chapter. The name of each file is Pxxx.sas.txt.txt (for the SAS data step) or Pxxx.txt (for the raw data files), where Pxxx is the page number xxx in the book where the data are given.
You can click on the “SAS Data Step” and it will open up the file in your browser. You can mark the text and copy and paste it into SAS, or you can choose to save the file onto your computer.
The raw data files are all in text (ASCII) format, so that they can be read by different software packages and different work processors. The variable names are in the first row and the columns are delimited by spaces.
Chapter 1
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Milk Production | P004.sas.txt | P004.txt | 004 | 199 | 7 |
Right-To-Work Law | P005.sas.txt | P005.txt | 005 | 38 | 7 |
Egyptian Skulls | P006.sas.txt | P006.txt | 006 | 150 | 5 |
Domestic Immigration | P008.sas.txt | P008.txt | 008 | 48 | 6 |
Domestic Immigration | P009.sas.txt | P009.txt | 009 | 48 | 6 |
New York Rivers | P010.sas.txt | P010.txt | 010 | 20 | 5 |
Chapter 2
Desciption | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Perfect Nonlinear Relationship | P025a.sas.txt | P025a.txt | 025 | 15 | 2 |
Anscombe’s Quartet | P025b.sas.txt | P025b.txt | 025 | 11 | 8 |
Computer Repair | P027.sas.txt | P027.txt | 027 | 14 | 2 |
Heights of Husband & Wife | P049.sas.txt | P049.txt | 049 | 96 | 2 |
Newspapers Data | P050.sas.txt | P050.txt | 050 | 34 | 2 |
Chapter 3
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Supervisor Performance | P054.sas.txt | P054.txt | 054 | 30 | 7 |
Examination Data | P076.sas.txt | P076.txt | 076 | 22 | 3 |
Cigarette Consumption | P081.sas.txt | P081.txt | 081 | 51 | 7 |
Chapter 4
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Hamilton’s Data | P095.sas.txt | P095.txt | 095 | 15 | 3 |
Scottish Hills Races | P112.sas.txt | P112.txt | 112 | 35 | 3 |
Expanded Computer Repair | P117.sas.txt | P117.txt | 117 | 24 | 2 |
Exercise 4.10 | P119.sas.txt | P119.txt | 119 | 12 | 2 |
Exercises 4.12-4.14 | P121.sas.txt | P121.txt | 121 | 40 | 7 |
Chapter 5
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Salary Survey | P124.sas.txt | P124.txt | 124 | 46 | 4 |
Preemployment Testing | P134.sas.txt | P134.txt | 134 | 20 | 3 |
Ski Sales | P143.sas.txt | P143.txt | 143 | 40 | 3 |
Education Expenditures (1960) | P145.sas.txt | P145.txt | 145 | 50 | 5 |
Education Expenditures (1970) | P146.sas.txt | P146.txt | 146 | 50 | 5 |
Education Expenditures (1975) | P147.sas.txt | P147.txt | 147 | 50 | 5 |
Corn Yield | P148.sas.txt | P148.txt | 148 | 10 | 4 |
Class Data | P149.sas.txt | P149.txt | 149 | 60 | 4 |
Presidential Election | P150.sas.txt | P150.txt | 150 | 21 | 8 |
Chapter 6
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Bacteria | p157.sas.txt | p157.txt | 157 | 15 | 2 |
Supervisors | p167.sas.txt | P167.txt | 167 | 27 | 2 |
Brain/Body Weight | p176.sas.txt | P176.txt | 176 | 28 | 2 |
Advertising | p177.sas.txt | P177.txt | 177 | 41 | 2 |
Wind Chill Factor | p178.sas.txt | P178.txt | 178 | 120 | 3 |
Crude Oil Production | p179.sas.txt | P179.txt | 179 | 29 | 2 |
Storage Price | p180.sas.txt | P180.txt | 180 | 11 | 2 |
Chapter 7
Description | SAS Data Steps | Raw Data Files | Page | # of Cases | # of Vars |
Education Expenditure | p189.sas.txt | P189.txt | 189 | 50 | 5 |
Chapter 8
Description | SAS Data Steps | Raw Data Files | Page | # of Cases | # of Vars |
Consumer Expenditure | p203.sas.txt | P203.txt | 203 | 20 | 4 |
Housing Starts | p211.sas.txt | P211.txt | 211 | 25 | 3 |
Ski Sales | p217.sas.txt | P217.txt | 217 | 40 | 3 |
DJIA | p222.sas.txt | P222.txt | 222- 223 | 262 | 2 |
Chapter 9
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Equal Educational Opportunity | p228.sas.txt | p228.txt | 228 | 70 | 4 |
French Economy | p233.sas.txt | P233.txt | 233 | 18 | 5 |
Sales Expenses | p238.sas.txt | P238.txt | 238 | 22 | 6 |
Gasoline Consumption | p259.sas.txt | P259.txt | 259 | 30 | 12 |
Chapter 10
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Longley’s Data | p280.sas.txt | P280.txt | 280 | 16 | 7 |
Hald’s Data | p281.sas.txt | P281.txt | 281 | 13 | 5 |
Chapter 11
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Vars |
Homicides Data | p301.sas.txt | P301.txt | 301 | 13 | 13 |
Building Prices | p313.sas.txt | P313.txt | 313 | 24 | 10 |
Chapter 12
Description | SAS Data Step | Raw Data File | Page | # of Cases | # of Variables |
Financial Ratios | p323.sas.txt | P323.txt | 323 | 66 | 4 |
Space Shuttle Challenger | p333.sas.txt | P333.txt | 333 | 23 | 2 |
Field Goal Kicking | p334.sas.txt | P334.txt | 334 | 10 | 4 |