DEM 201: Demographic Methods with R
Demographic Methods with R
Translate the classic toolkit of formal demography into transparent, reproducible R code. Build life tables from scratch, decompose mortality and fertility differentials, and run deterministic and stochastic cohort-component projections.
tidyverse familiaritywpp2024 · tidyverse · QuartoCourse Overview
DEM 201: Demographic Methods with R is the core quantitative methods course in the Population Data Science program at Portland State University’s Population Research Center. Over 10 weeks, learners implement the foundational mathematical and empirical methods of demography (Preston, Heuveline, & Guillot; Keyfitz & Caswell) directly in R.
Rather than relying on opaque spreadsheet templates, participants write clean, reusable R code to evaluate census data quality, standardize and decompose rates, construct single- and multiple-decrement life tables from the Human Mortality Database (HMD), measure period and cohort fertility, estimate net migration, and project populations using Leslie matrices and stochastic forecasting models.
10-Week Schedule & Hands-On R Labs
| Week | Modules | Topic | Hands-On R Lab / Deliverable |
|---|---|---|---|
| 1 | Mod 0–1 | R Toolkit & Core Concepts (Rates, Probabilities, Person-Years, Lexis Diagrams) | Lab 1: Exploring World Population Data (wpp2024) |
| 2 | Mod 2–3 | Demographic Data Quality (Whipple/Myers) & Population Growth Models | Lab 2: Exponential/Logistic Growth & Doubling Time |
| 3 | Mod 4–5 | Age–Sex Structure, Dependency Ratios, Standardization & Kitagawa Decomposition | Lab 3: Direct/Indirect Standardization & Decomposition |
| 4 | Mod 6–7 | Mortality Measurement, Period/Cohort Life Tables & Multiple-Decrement Models | Lab 4: Complete & Abridged Life Table Construction in R |
| 5 | Mod 8 | Fertility Analysis (ASFR, TFR, GRR, NRR, Coale Indices, Bongaarts & Parity) | Lab 5: Period & Cohort Fertility Schedules |
| 6 | Mod 9 | Migration Estimation (Residual Vital Statistics, Survival Ratio & Gravity Models) | Lab 6: Subnational Net Migration & Rogers–Castro Schedules |
| 7 | Mod 10 | Cohort-Component Population Projections & Stochastic Forecasting (Lee-Carter) |
Lab 7: Building a Cohort-Component Projection Engine |
| 8 | Mod 11 | Population Momentum, Stable Population Theory & Matrix Demography (\(\mathbf{L}\), \(\lambda_1\), \(r\)) | Lab 8: Leslie Matrix Eigen-Analysis & Keyfitz Momentum |
| 9 | Mod 12–13 | Subnational Housing-Unit Estimation (HUE), Small-Area Smoothing & Uncertainty | Lab 9: Applied Subnational Estimates Workshop |
| 10 | Mod 14–16 | Synthesis & Capstone Project Showcase | Capstone: Reproducible Demographic Methods Portfolio Report |
Learning Outcomes
By the end of DEM 201, participants will be able to:
- Compute exact person-years lived (\(PYL\)), exposure-to-risk, and age-specific occurrence/exposure rates on a Lexis diagram
- Diagnose age heaping and enumeration errors using Whipple’s index, Myers’ blended index, and UN age–sex accuracy scores
- Perform direct and indirect standardization and decompose differences in rates or life expectancy (\(e_0\)) via Kitagawa, Das Gupta, and Arriaga decomposition
- Construct complete, abridged, and cause-deleted (multiple-decrement) life tables in R
- Calculate period and cohort fertility indicators (\(ASFR\), \(TFR\), \(GRR\), \(NRR\)) and estimate subnational net migration via vital statistics and forward/reverse survival ratios
- Implement matrix cohort-component projections (\(\mathbf{P}_{t+5} = \mathbf{L}\mathbf{P}_t\)), extract intrinsic growth rates (\(r = \frac{1}{5}\ln\lambda_1\)) and stable age structures, and quantify Keyfitz population momentum
Assessment & Grading Structure
| Component | Weight | Description |
|---|---|---|
| Weekly R Labs (Labs 1–9) | 45% | Applied R coding labs implementing life tables, standardization, and projections |
| Module Quizzes (Quizzes 1–5) | 15% | Biweekly conceptual and calculation checks in Canvas |
| Discussion Forums | 10% | Methodological critiques and interpretation of empirical demographic anomalies |
| Final Capstone Project | 30% | Reproducible Quarto demographic analysis & projection report on a chosen population |