R Tutorials: Statistics

by Simon Ejdemyr

These tutorials were originally developed for an undergraduate class in quantitative methods in the social sciences at Stanford.

Tutorial 1

  • basic syntax

  • reading data

  • loading & installing packages

  • basic data manipulation

Tutorial 2

  • more on data manipulation

  • graphing with ggplot

  • for loops

  • central limit theorem

Tutorial 3

  • more on for loops

  • graphing with ggplot

  • functions

  • coverage probability

Tutorial 4

  • exporting tables & graphs

  • hypothesis testing

Tutorial 5

  • merging & appending data

Tutorial 6

  • interpreting & graphing OLS models

Tutorial 7

  • analyzing (quasi-)experimental data

Tutorial 8

  • propensity score matching