Tutorials
Gradescope
Grades
Discussion forum
Course information
Overview
Syllabus
Support
Course staff
Schedule
Useful links
FAQ
Reference sheets
Application exercises
Lab
Lab 00 - Hello R!
Lab 01 - Data visualization
Lab 02 - Data wrangling
Lab - Project proposal
Lab 03 - Git workflows
Lab 04 - Money in U.S. politics
Lab - Prelim review
Homework
HW 00 - Statistics diagnostic
HW 01 - Data visualization
HW 02 - Data wrangling
HW 03 - Data tidying
HW 04 - Import + clean data
HW 05 - Analyze socioeconomic data for countries
HW 06 - Smoking during pregnancy
HW 07 - Regressing socioeconomic data
HW 08 - Prediction + Bootstrap
HW 09 - Predicting attitudes towards marijuana
Project
Overview
Proposal
Exploratory data analysis
Preregistration of analyses
Draft
Peer review
Presentation + slides
Report
Reproducibility + organization
Project tips + resources
Exam
Exam 01
Exam 02
Extra credit
Tutorials
Tutorials
Modified
January 17, 2025
Application Programming Interface
Introduces Application Programming Interfaces (APIs) and how they work.
Create your OpenAI key
Instructions to create an API key for OpenAI and store it using Renviron.
Do not throw away your shot: Text mining and
Hamilton
Use {tidytext} to explore the
Hamilton
lyrics.
Formatting results tables
Demonstration of how to appropriately report the results of regression models
Obtaining World Bank indicators
Use the {wbstats} package to access the World Bank API.
Securely storing API keys
What are API keys and how to store them securely for R packages.
Setup course software
Installation instructions to install R/RStudio/Git locally.
The grammar of graphics
Introduces the grammar of graphics as a conceptual framework for generating statistical charts.
Using {tidytext} with song titles
Use {tidytext} to tidy song lyrics and calculate basic statistics.
No matching items
Extra credit