Public Policy Analytics
2025-09-08
Problem: AI tools making it easy to complete code without understanding
Solution:
GitHub: Industry standard for version control and collaboration
Quarto: Modern approach to reproducible research and documentation
R: Powerful for spatial analysis and policy-focused statistics
These aren’t just “class tools” - they’re career tools:
Version control system that tracks changes in files
Think of it as:
Cloud hosting for Git repositories
Repository (repo): Folder containing your project files
Commit: Snapshot of your work at a point in time
Push: Send your changes to GitHub cloud
Pull: Get latest changes from GitHub cloud
This will become second nature soon!
Educational tool that:
Publishing system that combines:
Into professional documents
Reproducible research:
Career relevance:
If you know R Markdown:
YAML header:
R code chunk:
Bold text
Italic text
Bold and italic
code text
Strikethrough
Use headers to organize your analysis sections.
Essential for professional portfolios:
Collection of packages designed for data science:
Tidyverse uses “tibbles” - enhanced data frames.
Smarter Printing:
We’ll use these constantly:
select()
- choose columnsfilter()
- choose rowsmutate()
- create new variablessummarize()
- calculate statisticsgroup_by()
- operate on groups
# The power of pipes - read as "then"
car_summary <- data %>%
filter(`Year of manufacture` >= 2020) %>% # Recent models only
select(Manufacturer, Model, Price, Mileage) %>% # Key variables
mutate(price_k = Price / 1000) %>% # Convert to thousands
filter(Mileage < 50000) %>% # Low mileage cars
group_by(Manufacturer) %>% # Group by brand
summarize( # Calculate statistics
avg_price = mean(price_k, na.rm = TRUE),
count = n()
)
This semester we’ll use these skills for:
Monday Class: - New concepts and methods - Hands-on coding practice - Lab work with TA support
During Week: - Complete portfolio assignments - Weekly notes and reflection - Office hours for help
Focus on understanding, not perfect code:
Your GitHub portfolio will include:
By end of today: - Working portfolio repository - Live website with your work - First R analysis in professional format - Familiarity with workflow
Next: Portfolio setup with GitHub Classroom
Remember: This is a learning process - ask for help when you need it!
[Switch to live demonstration of GitHub Classroom workflow]