R Code for Advanced Topics in Regression - HMS 793