Programming and Statistical Modeling in R