• Code and Supplements
    • Supplements
    • Answers to selected exercises
    • Afterword
  • Practical Guide
  • Blog
  • R code
  • Resources
    • Ways to Use Code
    • Code for Selected Figures
    • Download PDF
    • Download Docx
  • Download PDF
  • Download Docx
  1. Preface
  • Preface
  • 1  Chapter 1: Learning from data
  • 2  Chapter 2: Generalizing from models
  • 3  Chapter 3: Multiple linear regression
  • 4  Chapter 4: Exploiting the linear model framework
  • 5  Chapter 5: Generalized linear models and survival analysis
  • 6  Chapter 9: Multivariate data exploration and discrimination
  • 7  Appendix A: The R System – A Brief Overview

Table of contents

  • Preface

R Code for ‘A Practical Guide . . .’

Author

John Maindonald

Published

June 2, 2024

Preface

Code provided here is for the May 2024 text:

“A Practical Guide to Data Analysis Using R – An Example-Based Approach”, by John H Maindonald, W John Braun, and Jeffrey L Andrews.

Code that is shown in the text is filled out to include all code for graphs. In chapter 2 and later, the text includes code only for those graphs that are specifically targeted at the methodology under discussion.

The text has been available in digital format since early May 2024. It has been available in print in the UK from May 30, is due to be available in print in the USA in July, and in Australia and New Zealand in August 2024.

For details for the UK, see: A Practical Guide to Data Analysis Using R – Cambridge University Press UK

1  Chapter 1: Learning from data