Computational code

This book makes heavy use of the R programming language, and unabashedly develops programming principles using the tidyverse syntax and programming approach. This is intentional to facilitate direct connections to courses in introductory data science or data visualization. Throughout my years learning (and teaching) different programming languages I have found R to be the most versatile and adaptable. The tidyverse syntax has also been transformational for me in my own work and as my students - the barrier to compute and write code is lowered.

There is a companion R package available called demodelr to run programs and functions in the text. Instructions to install this package are given in Section 2. The minimum version of R Version 4.0.2 (2020-06-22) and RStudio is Version 1.4.1717.

The demodelr package uses the following R packages:

  • tidyverse (and the associated packages) (Version 1.3.1)
  • GGally (Version 2.1.2)
  • formula.tools (Version 1.7.1)
  • expm (Version 0.999-6)

There may be others that I am not aware of at the moment.