R code and data sets are available on the book’s github site