R scripts for Data Analysis and Graphics Using R - An Example-Based Approach by John Maindonald and John Braun In this (March 19, 2004) version of the scripts, code errors have been corrected. Addtionally, there are a few places (e.g., p.40, on the use of xyplot()) where the code has been modified and improved relative to the code that appears in the current printing. intro.R: # CH 1: A Brief Introduction to R eda.R: # CH 2: Styles of Data Analysis models.R: # CH 3: Statistical Models inference.R: # CH 4: An Introduction to Formal Inference reg1.R: # CH 5: Regression with a Single Predictor multilr.R: # CH 6: Multiple Linear Regression exploit.R: # CH 7: Exploiting the Linear Model Framework glm.R: # CH 8: Logistic Regression & Other Generalized Linear Models multilevel.R:# CH 9: Multi-level Models, Time Series & Repeated Measures treebased.R: # CH 10: Tree-Based Classification and Regression mva.R: # CH 11: Multivariate Data Exploration and Discrimination additional.R:# CH 12: The R System -- Additional Topics splus-diffs-R: # Appendix: Differences from S-PLUS Data sets, and a small number of functions that are additional to those in R base or in recommended packages, are in our DAAG package, available either from http://www.stats.uwo.ca/DAAG or from CRAN (http://www.cran.r-project.org) John Maindonald March 19,2004. john.maindonald@anu.edu.au