Getting Started with R
The R Overview page provides background on installing R and RStudio and using markdown to create data-driven documents.
Stats Review
For a refresher on core stats concepts that serve as pre-requisites to this course, visit the stats review page.
Course Handouts
- Regression Review Assessment [ pdf ]
- Common Statistics Notation [ pdf ]
- Anscomb’s Quartet [ pdf ]
- Omitted Variable Bias Calculation
- Seven Sins of Regression [ pdf ]
- Marginal Effects in Quadratic Model [ pdf ]
- Dummy Variables with Interactions [ pdf ]
- A Taxonomy of Control Variables [ pdf ]
Regression Tutorials for R
The following provide useful tutorials that offer R syntax for common regression techniques.
- UC Business Analytics [ link ]
- By Manny Gimond [ link ]
- Listen Data [ link ]
- Machine Learning Plus [ link ]
- Learning regression in R using Moneyball models [ link ]
- regression animations [ link ]
- much nicer but more complex animations [ link ]
- Mathematics in R Markdown [ link ]
Creating Nice Tables in RMD
Useful R Packages
- plm: panel linear models
- coefplot: create coefficient plots
- dplyr: data wrangling
- stargazer: nice regression tables
- pander: formatting tables
- xtable: formatting tables
Reference Texts