Special thanks to my colleagues from University of Prince Edward Island, Henrik Stryhn and Ian Dohoo who reviewed and commented this document and the R scripts for the exercises.
R