Week 8: Data Retrieval (and Statistical Models)

Practicum 1 Due

Author

Prof. Jack Reilly

Published

Fall 2026

Due This Week: Practicum 1 (Friday, by midnight)

Lecture: Data Retrieval and Statistics

There is no class Tuesday (Fall Break), so this weekโ€™s lecture is Thursday, in class.

๐Ÿ’พ Slides on the Course Drive

Workshops

  • After lecture: work through the eighth self-paced workshop, which runs the lectureโ€™s gssr and tidycensus code step by step: loading the GSS straight from a package, checking which years a question was asked, and graphing a fifty-year trend (in the browser), then storing your Census API key safely and pulling, searching and graphing decennial census tables by state and county (in your own R). Get your Census API key (below) first.
  • Then the ninth self-paced workshop, which runs the lectureโ€™s statistics on the 2022 GSS in the browser: chi-square, both kinds of t-test and correlation, then lm() from summary() through diagnostics, predictions, interactions with margins, categorical predictors and broom, ending with logit and probit.

Reference Material

  • Databases
  • Data Sources
  • Statistics
    • DV, ch 6
    • There are a lot of R companion books that focus on statistics. A few I like:
      • Verzani, Using R for Introductory Statistics. A basic statistics with R text.
      • Gelman, Hill, and Vehtari, Regression and Other Stories. An excellent introduction to regression generally, with applications in R.
      • Imai, Quantitative Social Science. A textbook for a course that is a blend of statistics and R wrangling.

Computational Work

Due Next Week: Core Exam

Study!