/learnR

R walkthroughs

Primary LanguageR

R Walkthroughs

Introduction to R

Exploratory data analysis

Fitting equations to data

Predictable and unpredictable variation

Grouping variables in regression

  • Reaction time in video games: modeling numerical outcomes with more than one categorical predictor; dummy variables and interaction terms; analysis of variance.
  • House prices: regression with one numerical and multiple categorical predictors; dummy variables and interactions in simple regression models.

Quantifying uncertainty via the bootstrap

  • Gone fishing: using the Monte Carlo method to simulate the sampling distributions of the sample mean and of the least-squares estimator
  • Kidney function and aging, revisited: bootstrapping the sample mean and the OLS estimator; computing confidence intervals from bootstrapped samples.
  • Newspapers: using the normal linear regression model to quantify uncertainty about parameters and predictions.

Multiple regression: basics

  • The wage gap: an introduction to multiple regression
  • Current population survey: the affect of collinearity on the estimated coefficients and ANOVA table in a multiple regression model.

Hypothesis testing

Building a predictive model

  • Google flu trends: Building and checking a predictive model using stepwise selection

Generalized linear models

Time series

Monte Carlo simulation

Miscellaneous

  • Optimization: defining and optimizing your own functions in R.