Computing for Data Analysis in the Social Sciences

The COMPASS Workshops are a series of free, open-source statistical programming and data science workshops held weekly during the academic year at Princeton University. Supported by the Department of Sociology, Department of Politics, and the Office of the President, the workshops focus on using R with RStudio in a variety of real-world applications relevant to social scientists. Topics covered include data wrangling, data visualization, Monte Carlo simulations, linear regression, data wrangling, and text mining.

To find out more about the workshops, join the COMPASS Workshops mailing list by sending an email to listserv@lists.princeton.edu with "Subscribe COMPASSWORKSHOPS" in the body and all other lines blank including the subject.

February 13 | Introduction to R and RStudio (Ethan) |
Slides | Data | Code |

February 20 | Data Wrangling in R (Yunkyu) |
Slides | Data | Code |

February 27 | Base R Graphics (Yunkyu) |
Slides | Data | Code |

March 6 | Hypothesis Testing in R (Ethan) |
Slides | Data | Code |

March 27 | Programming Loops in R (Ethan) |
Slides | Data | Code |

April 3 | Data Visualization with ggplot2 (Ethan) |
Slides | Data | Code |

April 10 | Regression Analysis in R (Yunkyu) |
Slides | Data | Code |

April 17 | Probability and Simulations in R (Yunkyu) |
Slides | Code |

September 21 | Introduction to R and RStudio (Ethan) |
Slides | Data | Code |

September 28 | Data Wrangling in R (Yunkyu) |
Slides | Data | Code |

October 5 | Base R Graphics (Yunkyu) |
Slides | Data | Code |

October 12 | Programming Loops in R (Ethan) |
Slides | Data | Code |

October 19 | Regression Analysis in R (Yunkyu) |
Slides | Data | Code |

October 26 | Probability and Simulations in R (Yunkyu) |
Slides | Code | |

November 9 | Monte Carlo Simulations in R (Yunkyu) |
Slides | Data | Code |

November 16 | Hypothesis Testing (Ethan) |
Slides | Data | Code |

November 30 | Text Mining in R (Ethan) |
Slides | Data | Code |

December 7 | Data Visualization with ggplot2 (Ethan) |
Slides | Data | Code |

February 15 | Introduction to R and RStudio (Yunkyu) |
Slides | Data | Code |

February 22 | Data Wrangling in R (Yunkyu) |
Slides | Data | Code |

March 1 | Basic Graphics with ggplot2 (Ethan) |
Slides | Data | Code |

March 8 | Intermediate Graphics with ggplot2 (Ethan) |
Slides | Data | Code |

March 29 | Hypothesis Testing in R (Ethan) |
Slides | Data | Code |

April 12 | Probability and Simulations in R (Yunkyu) |
Slides | Code | |

April 19 | Text Analysis in R (Ethan) |
Slides | Data | Code |

April 26 | Regression Analysis in R (Yunkyu) |
Slides | Data | Code |

September 20 | Introduction to R and RStudio (Ethan) |
Slides | Data | Code |

September 27 | Data Wrangling in R (Yunkyu) |
Slides | Data | Code |

October 4 | Base R Graphics (Yunkyu) |
Slides | Data | Code |

October 11 | Data Visualization in R with ggplot2 (Ethan) |
Slides | Data | Code |

October 18 | Programming Loops in R (Ethan) |
Slides | Data | Code |

November 8 | Probability and Simulations in R (Yunkyu) |
Slides | Code | |

November 15 | Monte Carlo Simulations in R (Yunkyu) |
Slides | Data | Code |

November 29 | Text Analysis in R (Ethan) |
Slides | Data | Code |

December 6 | Hypothesis Testing in R (Ethan) |
Slides | Data | Code |

December 13 | Regression Analysis in R (Yunkyu) |
Slides | Data | Code |

**Teaching Staff**

The workshops are taught by Ethan Fosse (Research Associate, Department of Sociology) and Yunkyu Sohn
(Research Associate, Department of Politics).

**Faculty Sponsors**

The workshops are sponsored by Margaret Frye (Assistant Professor, Department of Sociology), Kosuke Imai (Professor, Department of Politics), and Matthew Salganik (Professor, Department of Sociology).

All that materials that we created for the COMPASS workshops are licensed under a Creative Commons By-licenses. Please feel free to reuse or improve.