Welcome to Economics 425/525: Econometrics III (Spring 2019) at the University of Oregon (taught by Dr. Ed Rubin).
Lecture Monday and Wednesday 2:00pm–3:20pm, McKenzie Hall 240A
Lab Friday 12:00pm–12:50pm, Gerlinger Hall 302
Office hours
- Ed Rubin Monday 4:00pm–5:00pm and Thursday 9:00am–10:00am, PLC 519
- Jenni Putz Monday 4:00pm–5:00pm and Friday 9:30am–11:00am, PLC 523
We will mainly use two books.
Mostly Harmless Econometrics: An Empiricist's Companion (MHE)
by Angrist and Pischke
Your new best friend. Read it.
Microeconometrics (C&T)
by Cameron and Trivedi
Also very readable and accessible.
Runner up (the standard):
Econometric Analysis (Greene)
by Greene
Encyclopedic resource for all (most?) of the questions MHE does not answer.
Note: The linked slides (below) are .html
files that will only work properly if you are connected to the internet. If you're going off grid (camping + metrics?), grab the PDFs. You'll miss out on gifs and interactive plots, but the equations will actually show up. I've removed the within-slide (incremental) pauses in the (no pause) slides.
The content of the lectures mainly follows MHE and Michael Anderson—with additional inspiration from Max Auffhammer and many other sources.
Lecture 01: Research + R + You = 💖
- An introduction to empirical research via applied econometrics.
- R: Light introduction—objects, functions, and help.
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE preface + MHE chapter 1
Lecture 02: The Experimental Ideal
- Neyman potential outcomes framework (Rubin causal model)
- Selection bias and experimental variation in treatment
- R: Object types/classes and package management.
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 2
- What's the big deal about least-squares (population) regression?
- What does the CEF tell us?
- How does least-squares regression relate to the CEF?
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 3
Lecture 04: Inference and Simulation
- How do we move from populations to samples?
- What matters for drawing basic statistical inferences about the population?
- How can we learn about inference from simulation?
- How do we run (parallelized) simulations in R?
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 3
- Saturated models
- When is regression causal?
- The conditional-independence assumption
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: Still MHE chapter 3
- Omitted-variable bias
- Good and bad controls
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: Still MHE chapter 3
Another note on the notes: I create the slides with xaringan
in R. Thanks to Grant McDermott for encouraging me to make this switch.
- Matching estimators: Nearest neighbor and kernel
- Propensity-score methods: Regression control, treatment-effect heterogeneity, blocking, weighting, doubly robust
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 3 + C&T section 25.4
Lecture 08: Instrument Variables
- General research designs
- Instrumental variables
- Two-stage least squares
- Heterogeneous treatment effects and the LATE
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 4 + C&T sections 4.8–4.9
Lecture 09: Regression Discontinuity
- Sharp regression discontinuities
- Fuzzy regression discontinuities
- Graphical analyses
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 6 + C&T sections 25.6
Another note on the notes: I create the slides with xaringan
in R. Thanks to Grant McDermott for encouraging me to make this switch.
Lecture 10: Inference: Clustering
- General inference
- Moulton
- Cluster-robust standard errors
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 8
Lecture 11: Inference: Resampling and Randomization
- Resampling
- The bootstrap
- Permutation tests (Fisher)
- Randomization inference (Neyman-Pearson)
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Readings: MHE chapter 6 + C&T sections 25.6
Another note on the notes: I create the slides with xaringan
in R. Thanks to Grant McDermott for encouraging me to make this switch.
- Object types/classes/structures
- Package management
- Math and stat. in R
- Indexing
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Solutions:
.html | .pdf
- Data frames
- Data work with
dplyr
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Lab 03: RStudio + Data i/o with R
- RStudio
- Getting data into and out of R
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
lm()
andlm
objectsestimatr
andlm_robust()
- Other regressions, e.g.,
glm()
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
- Default
plot()
methods ggplot2
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
- General simulation strategies
- Simulating IV in finite samples
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
Lab 07: Miscellaneous R Tips and Tricks
- The
apply
family for()
loops- Lists
- Logical vectors and
which()
Note formats: .html | .html (no pause) | .pdf | .pdf (no pause) | .Rmd
2–4 problem sets combining econometric theory and R.
Problem set 1
Due Sunday, 19 May 2019 by midnight
Solutions
Problem set 2
Due Wednesday, 29 May 2019 by midnight
Solutions
Building a research project/proposal.
Step 1: Research question (causal relationship of interest) and motivation.
Should be between 2 sentences and 2 paragraphs.
Due 15 April 2019.
Step 2: Short proposal
Due 30 May 2019
- Instrumental variables
- Regression discontinuity
Metrics books
- Hayashi's Econometrics
- Kennedy
- Mastering 'Metrics (undergrad version of Mostly Harmless)
- Stock and Waston
- Wooldridge ("Baby")
- Wooldridge (Adult?)
R resources
- Grant McDermott's Data Science of Economists course
- DataCamp's Introduction to R
- R for Data Science
- Advanced R
- RStudio's listing of online resources
Metrics and R