Week 8: Data Retrieval (and Statistical Models)
Practicum 1 Due
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.
Workshops
- After lecture: work through the eighth self-paced workshop, which runs the lectureโs
gssrandtidycensuscode 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()fromsummary()through diagnostics, predictions, interactions withmargins, categorical predictors andbroom, 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
- Sign up for a US Census API Key
Due Next Week: Core Exam
Study!