panel data: brief outlines - warwick

22
Ec331: Research in Applied Economics Spring term, 2012 Panel Data: brief outlines

Upload: others

Post on 24-Oct-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Panel Data: brief outlines - Warwick

Ec331: Research in Applied EconomicsSpring term, 2012

Panel Data: brief outlines

Page 2: Panel Data: brief outlines - Warwick

Stata search function and pdf documentation Ec226 Lecture notes Ec331 Website: Topic handouts VerbeekWooldridgeDavidson and MacKinnon (2004) Cameron and Trivedi (2009) Specialist: e.g. Greene and Hensher (2010). Ch. 9

Resources

Page 3: Panel Data: brief outlines - Warwick

 Week 6 Friday - Office hours 12-2, or scheduled appointment afterwards

- sim. Fridays thereafter

Final Presentations (5%) Wk.7 Mon: Reem, Elizabeth, Alison, Shikha

Fri, 2-3: Martin, Mike, Lewis Treacy (and any of Mon's, if preferable) Wk.8 Mon: Rahim, Alex, Lewis Tutssel , Aleksey Wk.9 Mon: Jon, Benji, Pik Yen, Mark

Remaining structure

Page 4: Panel Data: brief outlines - Warwick

 Today:  

Parallel Worlds: Fixed effects, differences-in-differences, and Panel Data- Angrist and Pischke Ch. 5

 Key to causal inference: control for observed confounding factors. 

If important confounders are unobserved, try IV, but good instruments hard to find. 

Here: discussion of strategies that use data with a time or cohort dimension to control for unobserved but fixed omitted variables by relying on comparisons in levels (while req. the counterfactual trend behaviour of treatment and control groups to be the same) 

Panel Data

Page 5: Panel Data: brief outlines - Warwick

   

(1) Individual fixed effects

Page 6: Panel Data: brief outlines - Warwick

Key to fixed effects estimation:(i) Assumption unobserved A appears without a time subscript in a linear model(ii) Assumption that the causal effect is additive and constant        More restrictive than needed to motivate regression previously; linear, additive functional form neccessary to advance consideration of the problem of unobserved confounders using panel data with no instruments.

Individual fixed effects

Page 7: Panel Data: brief outlines - Warwick

This implies the fixed effects model:        Given panel data, the causal effect can be estimated by also considering alpha i, the fixed effect, and lambda t, the year effect, as a parameters to be estimated. The unobserved individual effects are coefficients on dummies for each individual, the year effects are coefficients on time dummies.

Individual fixed effects

Page 8: Panel Data: brief outlines - Warwick

Alternative to the fixed effects specification: random effects model. Assumes alpha i (the fixed effect) is uncorrelated with the regressors; and so omitting this variable does not induce bias, and it effectively becomes part of the residual. Most important consequence: residuals for a given person are correlated across periods (with implications for OLS standard errors).

Aside: Random Effects

Page 9: Panel Data: brief outlines - Warwick

 If FE seems like a lot of parameters to estimate, not a problem, in practise; individual effects as parameters algebraically equivalent to estimation in deviations from means:       The deviations from means estimator is also known as the "within estimator" and "analysis of covariance", while such estimation is called absorbing the fixed effects.  

Fixed effect equivalent: deviations from means

Page 10: Panel Data: brief outlines - Warwick

  Equivalent as, by the regression anatomy formula (see wk. 5 slides), any set of multivariate regression coefficients can be estimated by first regressing the desired set of independent variables on all other included variables, and then regressing the original dependent variable on the resultant residuals. Here, the residuals from a regression on a full set of person-dummies in a person-year panel are deviations from person means. 

Fixed effect equivalent: deviations from means

Page 11: Panel Data: brief outlines - Warwick

 One alternative to deviations from means is differencing:      Algebraically the same as deviations from means with two periods, not otherwise. If more than two periods, homoskedastic and serially uncorrelated errors ensure deviations from means is more efficient.

Alternative: Differencing

Page 12: Panel Data: brief outlines - Warwick

 Note: FE estimates are notoriously susceptible to attenuation bias from measurement error. 

- economic variables tend to be persistent- measurement error often changes from year to yearso any observed changes may be mostly noise

 i.e. more measurement error in differenced regressors than in levels, which may result in smaller fixed effects estimates. So if we observe smaller fixed effects estimates than cross section estimates, selection bias in the latter is not the only possible explanation.

Susceptibility to attenuation bias

Page 13: Panel Data: brief outlines - Warwick

 Variant of measurement error problem: Differencing and deviations from means estimators typically remove both good and bad variation, the transformations both dealing with some of the potential omitted variables bias but also removing useful information. As such, even small unobserved time-variation in the individual effects could be responsible for substantial bias. IV methods or external information and adjustment could be used to confront the measurement error problem, but such data rarely available. At a consequence, its important to avoid overly strong claims when interpreting fixed effects estimates.

Removal of useful information

Page 14: Panel Data: brief outlines - Warwick

 Fixed effects estimation requires panel data, repeated observations at the individual level, but often the regressor of interest varies only at a more aggregate or group level.  The source of OVB in policy evaluation is then unobserved variables at the group and year level, which may be captured by group-level fixed effects, leading to the differences-in-differences identification strategy (a version of fixed effects estimation using aggregate data).

(2) Differences-in-differences: Pre & Post, Treatment & Control

Page 15: Panel Data: brief outlines - Warwick

 Heart of DD setup - additive structure for potential outcomes in the no-treatment state, such that the outcome is the sum of a time-invariant group effect and a year effect common across groups (with the former playing the role previously of unobserved individual effect):

Differences-in-differences

Page 16: Panel Data: brief outlines - Warwick

 Gives:

Differences-in-differences

Page 17: Panel Data: brief outlines - Warwick

 So population difference-in-differences:        which is the causal effect of interest, and easily estimated using the sample analog of the population means.

Differences-in-differences

Page 18: Panel Data: brief outlines - Warwick

 Critical identifying assumption: trends would be the same in both groups in the absence of treatment, with all differences between treatment and control groups captured by the fixed effect, gamma s. This common trends assumption can be investigated using data on multiple periods, to see if the year-to-year variation differs substantially between groups for transitions other than treatment itself. Is the control group a good measure of counterfactual outcomes for the treatment group? A graph of outcomes over time may provide suggestive visual evidence.

Key Identifying Assumption

Page 19: Panel Data: brief outlines - Warwick

 

We can use regression to estimate such models:

Regression DD

Page 20: Panel Data: brief outlines - Warwick

 Additional groups or periods can also be added, with a generalisation including a dummy for each group and period. Regression DD also faciliates the study of policies other than those described by a simple dummy variable, where treatment intensity varies across states and over time. Finally, also easy to add additional covariates in this framework, modelling counterfactual outcomes as:

Regression DD - advantages

Page 21: Panel Data: brief outlines - Warwick

If the sample includes many years, the regression-DD model can be used to test for "Granger causality", which in this context means checking that past treatment predicts outcomes but future treatment does not. The pattern of lagged effects may be of interest, also. An alternative check on the DD identification strategy adds group-specific time trends to the list of controls; ideally, the estimated effects of interest are unchanged by such inclusion. Note: this requires at least three periods, and estimation is more robust and convincing when pre-treatment data establishes a clear trend that can be extrapolated to the post-treatment period. DD designs rely on treatment-control comparison; one potential pitfall is when the composition of treatment and control groups changes as a result of treatment. In this case, we might want to instrument for membership of treatment group.

Further issues

Page 22: Panel Data: brief outlines - Warwick

For many causal questions, the notion that the most important omitted variables are time invariant is implausible. As such, an alternative estimation strategy may control for past outcomes and dispense with fixed effects. 

Applied researchers may face a choice between fixed effects and lagged dependent variables models; one solution is to include both, but the conditions for consistent estimation are much more demanding than for either alone. 

As always, it is useful to check the robustness of any findings using alternative identifying assumptions, ideally finding broadly similar results. If a lagged dependent variable is the correct basis for the conditional independence assumption neccessary for causal inference, but fixed effects are mistakenly used, estimates of a positive treatment effect will tend to be too large. Similary, if fixed effects assumptions are correct but lagged outcomes are utilised, estimates will tend to be too small. Thus fixed effects and lagged dependent variables can be thought of as bounding the causal effect of interest.

- see Angrist and Pischke, Ch.5 for more discussion and applied examples

Fixed Effects Vs Lagged Dependent Variables