Preamble

This is a companion to the textbook Principles of Statistical Analysis. It contains some R code that illustrates the concepts and tools introduced in the textbook. Some familiarity with R is assumed, although no advanced knowledge is required. The code is meant to be relatively simple, yet useful, at least for novices. No real effort was made to optimize it.

The chapters are numbered as they are in the textbook, while the sections are not. The data not taken from packages is available here.

This document was created with bookdown using RStudio.