Download example code in R
- R to install necessary add-on packages
- Chapter 2 R examples (data management)
- Chapter 3 R examples (functions)
- Chapter 5 R examples (statistical procedures)
- Chapter 6 R examples (regression)
- Chapter 7 R examples (more regression)
- Chapter 8 R examples (graphics)
- Chapter 10 R examples (simulation)
- Chapter 11 R examples (special topics)
- Chapter 12 R examples (case studies)
Download example code in SAS
- Chapter 2 SAS examples (data management)
- Chapter 3 SAS examples (functions)
- Chapter 5 SAS examples (statistical procedures)
- Chapter 6 SAS examples (regression)
- Chapter 7 SAS examples (more regression)
- Chapter 8 SAS examples (graphics)
- Chapter 10 SAS examples (simulation)
- Chapter 11 SAS examples (special topics)
- Chapter 12 SAS examples (case studies)
A note about literate programming
SASweave, an implementation of literate programming that builds upon Sweave, was used to generate the output seen in the book (see also Russell Lenth's statweave). This code is run live to produce the displayed output (with one or two minor exceptions).