R is free to use for everyone and powerful. It has become one of the most widely-used programming languages for statistical analyses in the social sciences and is, for this reason, a highly-sought skill among employers. R is probably more versatile than you imagine. In fact, I programmed this website and all my lecture slides in R — and so can you!
This course will teach you how to do (social) data science with R. You will learn how to get your data into shape, transform and manipulate it, visualize it, and how to statistically model it. The course will also briefly introduce you to logistic regression and multilevel modelling. Apart from these skills that are necessary for conducting classical statistics, you will also learn how to do reproducible research and report your results using R Markdown. Beware that this class presumes that you have a solid background in basic statistics (i.e., descriptive statistics and multiple OLS regression).
This course is based on the fantastic and openly accessible book Introduction to R for Data Science by Garrett Grolemund and Hadley Wickham.
Find further infos about the class in the course catalogue and about time and place here
Before the first session, I would like you to please download R, download RStudio, and install both on your laptop (see also). Please always make sure to bring your laptop to class.
We meet once a week, every Friday with two sessions and a lunch break in between. Every session consists of a 45 minutes lecture, a 15 minutes break, and finally a 45 minutes lab session during which you work on that day's exercise in small groups. In just seven weeks you will be able to read complex code and conduct sophisticated analyses.
Session | Topic | Session | Topic |
---|---|---|---|
Week 36 | Week 40 | ||
1 | Intro | 9 | Modeling: OLS I |
2 | Vectors | 10 | Modeling: OLS II |
Week 37 | Week 41 | ||
3 | Data frames & tibbles | 11 | Modeling: Logistic regression |
4 | Visualization I | 12 | Modeling: Mixed effects models |
Week 38 | Week 43 | ||
5 | Piping & grouped operations | 13 | Dynamic documents with R Markdown |
6 | Visualization II | 14 | (Peer-) Feedback |
Week 39 | |||
7 | Reshaping & relational data | **End November ** | Peer feedback |
8 | Modeling: PCA | 07 January ‘22 | Deadline: Written essay |