QSS (Quantitative Social Science)
Supplementary Materials for the book, Quantitative Social Science: An Introduction, published by Princeton University Press in 2017. See the book website. It is also available for purchase at vendors like Amazon. Also included are materials for Quantitative Social Science: An Introduction in tidyverse, published by Princeton University Press in 2022. All tidyverse versions contain "-tidy" in their file names.
The book is based on the teaching philosophy summarized in the talk I gave at the Nuffield Foundation's Q-Step Programme in 2015: slides
This repository contains the data sets and R scripts (available in .R, .Rmd, and .pdf formats) for all of the chapters:
In addition, the repository contains:
- Errata (QSS, QSStidy)
- Sample course syllabi
qss
R package The data and code in this repository are also available as an
R package qss
(see the package website). The code is in
the form of vignettes. To install this package, use the following command:
install.packages("devtools") # if you have not installed devtools package already
devtools::install_github("kosukeimai/qss-package", build_vignettes = TRUE)
Once the qss
package is installed, you can use the data and vignette:
library(qss)
data(package = "qss") # list all data sets
data(elections) # load the elections data
vignette(package = "qss") # list all vignettes
browseVignettes("qss") # list vignettes and R code
vignette("causality", package = "qss") # show the vignette for the Causality chapter
Related repositories
- swirl exercises
qss-swirl
- Interactive Tutorials for QSS by Matt Blackwell
- R package
qss
(the package website) - tidyverse code
qss-tidy
by Jeff Arnold (the starting point for the QSS: tidyverse version of the book) - R package
qss.student
for students by Will Lowe - instructors' materials
qss-inst
- Lecture slides for QSS
The last two repositories are private. Instructors who wish access to these materials should either request access at the book website or email me.