Biostatistical Design and Analysis Using R: a practical guide
Downloadable Resources
As an alternative to the individual downloads listed below, the entire collection can be downloaded from
this link.
NOTE: some of the code snippets may rely on other packages (particularly the car package), and in some instances, I have forgotten to include them - sorry! I am trying to get around to them all and make them all self-contained - but time is my enemy.
Data sets
The following tree contains links to each of the data sets used in the book and the data sets therein are sequentially organized within chapters. Data sets are presented in comma delimited text files. Many browsers display the contents of text files directly rather than provide an option for downloading. Once a text file is displayed in the browser, it can be downloaded by navigating to the File menu, selecting the Save As option, and nominating a path for the file.
- Chapter 1 - Introduction to R
- Chapter 2 - Data sets
- Chapter 3 - Introductory statistical principles
- Chapter 4 - Sampling and experimental design with R
- Chapter 5 - Graphical data presentation
- Chapter 6 - Simple hypothesis testing
- Example 6a
- Example 6b
- Example 6c
- Example 6d
- Example 6e
- Chapter 7 - Introduction to linear models
- Chapter 8 - Correlation and simple linear regression
- Example 8a
- Example 8b
- Example 8c
- Example 8d
- Example 8e
- Example 8f
- Example 8g
- Example 8h
- Chapter 9 - Multiple and curvilinear regression
- Example 9a
- Example 9b
- Example 9c
- Example 9d
- Example 9e
- Example 9f
- Example 9g
- Example 9h
- Chapter 10 - Single factor classification (ANOVA)
- Example 10a
- Example 10b
- Example 10c
- Example 10d
- Example 10e
- Example 10f
- Example 10g
- Chapter 11 - Nested ANOVA
- Example 11a
- Example 11b
- Example 11c
- Example 11d
- Chapter 12 - Factorial ANOVA
- Example 12a
- Example 12b
- Example 12c
- Example 12d
- Example 12e
- Example 12f
- Chapter 13 - Unreplicated factorial designs
- Example 13a
- Example 13b
- Example 13c
- Example 13d
- Example 13e
- Chapter 14 - Partly nested designs
- Example 14a
- Example 14b
- Example 14c
- Example 14d
- Example 14e
- Example 14f
- Chapter 15 - Analysis of covariance
- Chapter 16 - Simple frequency analysis
- Example 16a
- Example 16b
- Example 16c
- Example 16d
- Chapter 17 - Generalized linear models
- Example 17a
- Example 17b
- Example 17c
- Example 17d
- Example 17e
- Example 17f
R code snippets
The following tree contains links to sets of R code scripts mirroring those used throughout the book. R code snippets are sequentially organized within chapters and are presented in simple text files. Many browsers display the contents of text files directly rather than provide an option for downloading. Once a text file is displayed in the browser, it can be downloaded by navigating to the File menu, selecting the Save As option, and nominating a path for the file.
- Chapter 1 - Introduction to R
- Chapter 2 - Data sets
- Chapter 3 - Introductory statistical principles
- Chapter 4 - Sampling and experimental design with R
- Chapter 5 - Graphical data presentation
- Chapter 6 - Simple hypothesis testing
- Example 6a
- Example 6b
- Example 6c
- Example 6d
- Example 6e
- Chapter 7 - Introduction to linear models
- Chapter 8 - Correlation and simple linear regression
- Example 8a
- Example 8b
- Example 8c
- Example 8d
- Example 8e
- Example 8f
- Example 8g
- Example 8h
- Example 8i
- Chapter 9 - Multiple and curvilinear regression
- Example 9a
- Example 9b
- Example 9c
- Example 9d
- Example 9e
- Example 9f
- Example 9g
- Example 9h
- Chapter 10 - Single factor classification (ANOVA)
- Example 10a
- Example 10b
- Example 10c
- Example 10d
- Example 10e
- Example 10f
- Example 10g
- Chapter 11 - Nested ANOVA
- Example 11a
- Example 11b
- Example 11c
- Example 11d
- Chapter 12 - Factorial ANOVA
- Example 12a
- Example 12b
- Example 12c
- Example 12d
- Example 12e
- Example 12f
- Chapter 13 - Unreplicated factorial designs
- Example 13a
- Example 13b
- Example 13c
- Example 13d
- Example 13e
- Chapter 14 - Partly nested designs
- Example 14a
- Example 14b
- Example 14c
- Example 14d
- Example 14e
- Example 14f
- Chapter 15 - Analysis of covariance
- Chapter 16 - Simple frequency analysis
- Example 16a
- Example 16b
- Example 16c
- Example 16d
- Chapter 17 - Generalized linear models
- Example 17a
- Example 17b
- Example 17c
- Example 17d
- Example 17e
- Example 17f
Special packages (biology)
To facilitate many of the peripheral biostatistical procedures in R, I have compiled an R package (biology). As yet, this package is not available on the CRAN.
- biology (Written by Murray Logan to accompany the book)
Additional resources
Errata