SAS and R: Data Management, Statistical Analysis, and Graphics (second edition)

Ken Kleinman and Nicholas J. Horton

Download example code in R

Download example code in SAS

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).