Longitudinal Data Analysis. RatSWD Nachwuchsworkshop Vorlesung von Josef Brüderl 25. August, 2009

Similar documents
Simultaneous Equations with Error Components. Mike Bronner Marko Ledic Anja Breitwieser

Problem Set 10: Panel Data

University of California at Berkeley Fall Introductory Applied Econometrics Final examination. Scores add up to 125 points

Exam ECON3150/4150: Introductory Econometrics. 18 May 2016; 09:00h-12.00h.

Fixed and Random Effects Models: Vartanian, SW 683

1 The basics of panel data

CRE METHODS FOR UNBALANCED PANELS Correlated Random Effects Panel Data Models IZA Summer School in Labor Economics May 13-19, 2013 Jeffrey M.

Lecture 9: Panel Data Model (Chapter 14, Wooldridge Textbook)

Lecture 3 Linear random intercept models

multilevel modeling: concepts, applications and interpretations

Jeffrey M. Wooldridge Michigan State University

Exercices for Applied Econometrics A

Please discuss each of the 3 problems on a separate sheet of paper, not just on a separate page!

Empirical Application of Panel Data Regression

Applied Econometrics. Lecture 3: Introduction to Linear Panel Data Models

Panel Data: Very Brief Overview Richard Williams, University of Notre Dame, Last revised April 6, 2015

Econometrics Homework 4 Solutions

Basic econometrics. Tutorial 3. Dipl.Kfm. Johannes Metzler

Longitudinal Data Analysis Using Stata Paul D. Allison, Ph.D. Upcoming Seminar: May 18-19, 2017, Chicago, Illinois

Econometrics I KS. Module 1: Bivariate Linear Regression. Alexander Ahammer. This version: March 12, 2018

Lecture 8: Instrumental Variables Estimation

ECON Introductory Econometrics. Lecture 16: Instrumental variables

Applied Quantitative Methods II

Controlling for Time Invariant Heterogeneity

INTRODUCTION TO BASIC LINEAR REGRESSION MODEL

Applied Econometrics (MSc.) Lecture 3 Instrumental Variables

Fortin Econ Econometric Review 1. 1 Panel Data Methods Fixed Effects Dummy Variables Regression... 7

Econometrics. Week 6. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Applied Microeconometrics (L5): Panel Data-Basics

α version (only brief introduction so far)

Exam D0M61A Advanced econometrics

Problem Set 5 ANSWERS

THE MULTIVARIATE LINEAR REGRESSION MODEL

Econometrics I KS. Module 2: Multivariate Linear Regression. Alexander Ahammer. This version: April 16, 2018

A Course in Applied Econometrics Lecture 18: Missing Data. Jeff Wooldridge IRP Lectures, UW Madison, August Linear model with IVs: y i x i u i,

****Lab 4, Feb 4: EDA and OLS and WLS

Kausalanalyse. Analysemöglichkeiten von Paneldaten

point estimates, standard errors, testing, and inference for nonlinear combinations

Panel data methods for policy analysis

ECON3150/4150 Spring 2016

Fixed Effects Models for Panel Data. December 1, 2014

Quantitative Methods Final Exam (2017/1)

Econometrics of Panel Data

ECO220Y Simple Regression: Testing the Slope

Econometric Analysis of Cross Section and Panel Data

Causal Inference Lecture Notes: Causal Inference with Repeated Measures in Observational Studies

New Developments in Econometrics Lecture 11: Difference-in-Differences Estimation

Lecture 4: Multivariate Regression, Part 2

On the Use of Linear Fixed Effects Regression Models for Causal Inference

ECON Introductory Econometrics. Lecture 6: OLS with Multiple Regressors

ECON 497 Final Exam Page 1 of 12

Practice 2SLS with Artificial Data Part 1

EMERGING MARKETS - Lecture 2: Methodology refresher

1

When Should We Use Linear Fixed Effects Regression Models for Causal Inference with Longitudinal Data?

Monday 7 th Febraury 2005

Lecture 4: Linear panel models

8. Nonstandard standard error issues 8.1. The bias of robust standard errors

ECON Introductory Econometrics. Lecture 7: OLS with Multiple Regressors Hypotheses tests

(a) Briefly discuss the advantage of using panel data in this situation rather than pure crosssections

Econ 582 Fixed Effects Estimation of Panel Data

When Should We Use Linear Fixed Effects Regression Models for Causal Inference with Longitudinal Data?

Panel Data. March 2, () Applied Economoetrics: Topic 6 March 2, / 43

Applied Statistics and Econometrics

Lab 07 Introduction to Econometrics

Lab 3: Two levels Poisson models (taken from Multilevel and Longitudinal Modeling Using Stata, p )

Thoughts on Heterogeneity in Econometric Models

Comparing Change Scores with Lagged Dependent Variables in Models of the Effects of Parents Actions to Modify Children's Problem Behavior

LECTURE 10. Introduction to Econometrics. Multicollinearity & Heteroskedasticity

Notes on Panel Data and Fixed Effects models

Difference-in-Differences Estimation

ECON3150/4150 Spring 2015

Introduction to Linear Regression Analysis

Warwick Economics Summer School Topics in Microeconometrics Instrumental Variables Estimation

Quantitative Economics for the Evaluation of the European Policy

Handout 12. Endogeneity & Simultaneous Equation Models

Microeconometrics (PhD) Problem set 2: Dynamic Panel Data Solutions

Econometrics. 8) Instrumental variables

ESTIMATING AVERAGE TREATMENT EFFECTS: REGRESSION DISCONTINUITY DESIGNS Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics

ERSA Training Workshop Lecture 5: Estimation of Binary Choice Models with Panel Data

Outline. Linear OLS Models vs: Linear Marginal Models Linear Conditional Models. Random Intercepts Random Intercepts & Slopes

Spatial Regression Models: Identification strategy using STATA TATIANE MENEZES PIMES/UFPE

Generalized method of moments estimation in Stata 11

Topic 10: Panel Data Analysis

Description Quick start Menu Syntax Options Remarks and examples Stored results Methods and formulas Acknowledgment References Also see

ECON Introductory Econometrics. Lecture 17: Experiments

Regression with a Single Regressor: Hypothesis Tests and Confidence Intervals

An explanation of Two Stage Least Squares

Exam ECON5106/9106 Fall 2018

Econ 836 Final Exam. 2 w N 2 u N 2. 2 v N

Statistical Inference with Regression Analysis

PhD/MA Econometrics Examination January 2012 PART A

Handout 11: Measurement Error

Lecture 4: Multivariate Regression, Part 2

Longitudinal Data Analysis Using SAS Paul D. Allison, Ph.D. Upcoming Seminar: October 13-14, 2017, Boston, Massachusetts

ECON Introductory Econometrics. Lecture 4: Linear Regression with One Regressor

Measurement Error. Often a data set will contain imperfect measures of the data we would ideally like.

Economics 582 Random Effects Estimation

REGRESSION RECAP. Josh Angrist. MIT (Fall 2014)

Lecture 3.1 Basic Logistic LDA

Transcription:

Longitudinal Data Analysis RatSWD Nachwuchsworkshop Vorlesung von Josef Brüderl 25. August, 2009

Longitudinal Data Analysis Traditional definition Statistical methods for analyzing data with a time dimension Trend data, event history data, panel data Modern definition (Cameron/Trivedi, Microeconometrics) Cross-sectional analysis: inference from between-subject comparison Longitudinal analysis: inference from within-subject comparison According to the modern definition are trend data always cross-sectional is traditional event-history analysis also cross-sectional only panel data (repeated observation of the same persons) allow for longitudinal analysis August 25, 2009 Josef Brüderl Page 1

Panel Data Repeated measures of one or more variables on one or more persons Macroeconomics, Political Science - Unit of analysis: countries - N small, T large - Repeated cross-sectional time-series Microeconomics, Sociology - Unit of analysis: persons - N large, T small - Mostly from panel surveys - Also from cross-sectional surveys by retrospective questions August 25, 2009 Josef Brüderl Page 2

Advantages of Panel Data Panel data allow for higher precision Due to the higher number of cases (pooling data, N T) However, in this respect trend data would be even better Panel data allow to study individual dynamics Transitions into and out of states (e.g. poverty) Individual growth curves (e.g. wage, materialism, intelligence) Cohort or age effect? Procedure: including age/cohort dummies They provide information on the time-ordering of events Causal inference gains strength Procedure: careful data preparation (lags) They allow for unobserved heterogeneity Procedure: special statistical models (the rest of this lecture) August 25, 2009 Josef Brüderl Page 3

Panel Data and Causal Inference I Counterfactual approach to causality (Rubin s model) T C Yi, t Y 0 i, t0 With cross-sectional data (between estimation) T C Yi, t Y 0 j, t0 Assumption of unit homogeneity (no unobserved heterogeneity) Assumption of conditional independence (no reverse causality) With panel data I (within estimation) T C Y Yi, t 1 i, t0 Problem: period effects, maturation With panel data II (difference-in-differences estimator, DID) T C C C Y Y ) ( Y Y ) ( i, t1 i, t0 j, t1 j, t 0 August 25, 2009 Josef Brüderl Page 4

Panel Data and Causal Inference II The two major problems in Social Research Solution with experimental design Solution with panel design Self-selection (leading to unobserved heterogeneity) Randomization Within estimation (before-after comparison) Reverse Causality (treatment depends on Y) Controlled treatment No simple solution (e.g. no time-varying unobserved heterog.) With panel data we can tackle one of the two major problems of Social Research August 25, 2009 Josef Brüderl Page 5

Panel Data and Causal Inference III No self-selection Bivariate analysis suffices Self-selection only on observables Cross-sectional regression provides unbiased estimates Even better: Cross-sectional propensity-score matching Self-selection also on unobservables Cross-sectional IV-estimation provides unbiased estimates under very strong assumptions Panel regression (fixed-effects regression) provides unbiased estimates under much weaker assumptions August 25, 2009 Josef Brüderl Page 6

Example: Marriage-Premium for Men? Fabricated data ( Wage Premium.dta ): long-format. list id time wage marr, separator(6) ------------------------- ------------------------- id time wage marr id time wage marr ------------------------- ------------------------- 1. 1 1 1000 0 13. 3 1 2900 0 2. 1 2 1050 0 14. 3 2 3000 0 3. 1 3 950 0 15. 3 3 3100 0 4. 1 4 1000 0 16. 3 4 3500 1 5. 1 5 1100 0 17. 3 5 3450 1 6. 1 6 900 0 18. 3 6 3550 1 ------------------------- ------------------------- 7. 2 1 2000 0 19. 4 1 3950 0 8. 2 2 1950 0 20. 4 2 4050 0 9. 2 3 2050 0 21. 4 3 4000 0 10. 2 4 2000 0 22. 4 4 4500 1 11. 2 5 1950 0 23. 4 5 4600 1 12. 2 6 2050 0 24. 4 6 4400 1 ------------------------- ------------------------- August 25, 2009 Josef Brüderl Page 7

Example: Marriage-Premium for Men? EURO per month 0 1000 2000 3000 4000 5000 There is a causal effect: a marriage-premium And there is selectivity: Only high wage men marry 1 2 3 4 5 6 Time before marriage after marriage August 25, 2009 Josef Brüderl Page 8

Example: Computing the Marriage-Premium These data are like experimental data Treatment and control group Before-after comparison Compute the DID-estimator (4500 4000) 2 (3500 3000) (2000 2000) 2 (1000 1000) 500 The marriage-premium is 500 Within-person comparison (the before-after difference) To rule out the possibility of maturation or period effects we compare the within-difference of married (treatment) and unmarried (control) men August 25, 2009 Josef Brüderl Page 9

The Fundamental Problem of Non-Experimental Research Result of a cross-sectional regression at T=4: y x u i4 0 1 i4 i4 Between-comparison: compare wages of married and unmarried men 4500 3500 2000 1000 ˆ1 2500 2 2 A cross-sectional regression is highly misleading! The bias is due to unobserved heterogeneity High-wage men self-select into marriage Technically: endogeneity (x i4 and u i4 are correlated) Self-selection is the fundamental problem of non-experimental research Most cross-sectional regression results are therefore highly disputable! August 25, 2009 Josef Brüderl Page 10

No Solution: Pooled-OLS Pool the data and estimate an OLS regression (POLS) y 0 x u The result is This is the mean of the red points minus the mean of the green points The bias is still heavy it ˆ1 1833 1 POLS also relies on a between comparison. It is thus biased due to unobserved heterogeneity: x it and u it are correlated Panel data per se do not remedy the problem of unobserved heterogeneity! One has to use appropriate methods of analysis it it August 25, 2009 Josef Brüderl Page 11

A Solution: Panel Data and Within-Estimation One has to construct a regression model that relies on the before-after comparison (like DID) Starting point: error-components model Person-specific error ν i, idiosyncratic error ε it u Error-components model y it it 1 x it ν i represents person-specific time-constant unobserved heterogeneity (fixed-effects) (in our example ν i could be unobserved ability) i i Pooled-OLS has to assume that x it is uncorrelated with both error-components it it August 25, 2009 Josef Brüderl Page 12

Fixed-Effects Regression How can we get rid of the fixed-effects? Within transformation Time-demeaning the data Average over t for each i y y it 1x it i it i 1x i i i (1) (2) Substract (2) from (1) y it y i ( x x ) 1 it i it i (3) Only within variation is left Pooled OLS (FE-estimator) unbiased, if Cov(x it, ε it ) = 0 However, Cov(x it,ν i ) 0 is allowed Time-constant unobserved heterogeneity is no longer a problem August 25, 2009 Josef Brüderl Page 13

Example: Fixed-Effects Regression. xtreg wage marr, fe Fixed-effects (within) regression Number of obs = 24 Group variable: id Number of groups = 4 R-sq: within = 0.8982 Obs per group: min = 6 between = 0.8351 avg = 6.0 overall = 0.4065 max = 6 F(1,19) = 167.65 corr(u_i, Xb) = 0.5164 Prob > F = 0.0000 ------------------------------------------------------------------------------ wage Coef. Std. Err. t P> t [95% Conf. Interval] -------------+---------------------------------------------------------------- marr 500 38.61642 12.95 0.000 419.1749 580.8251 _cons 2500 16.7214 149.51 0.000 2465.002 2534.998 -------------+---------------------------------------------------------------- sigma_u 1290.9944 sigma_e 66.885605 rho.99732298 (fraction of variance due to u_i) ------------------------------------------------------------------------------ August 25, 2009 Josef Brüderl Page 14

Mechanics of a FE-Regression demeaned(wage) -400-300 -200-100 0 100 200 300 400 -.5 0.5 demeaned(marr) Those, never marrying are at X=0. They contribute nothing to the regression. The slope is determined by the wages of those marrying only: It is the difference in the mean wage before and after marriage. August 25, 2009 Josef Brüderl Page 15

Summary of FE-Estimation Panel data and within estimation (DID, FE-regression) can remedy the problem of unobserved heterogeneity However, with FE-regressions we cannot estimate the effects of time-constant covariates. These are all cancelled out by the within transformation. This reflects the fact that panel data do not help to identify the causal effect of a time-constant covariate! The "within logic" applies only with time-varying covariates Something has to happen (the effects of events) Only then a before-after comparison is possible August 25, 2009 Josef Brüderl Page 16

An Example: Male Marital Wage Premium Mikrozensus Panel 1996-1999 (Campus-File) Analysesample Balanced Sample: nur Personen mit 4 Beobachtungen (bis auf MV) Männer, die 1996 18-40 Jahre alt sind und 1996 ledig sind Abhängige Variable Natürlicher Logarithmus des Netto-Monatslohnes (Intervallmitte imputiert) Unabhängige Variable Heirats-Dummy (Verheiratet) Kontrollvariablen Alterseffekt: Alter und Alter 2 Periodeneffekt: Jahres-Dummies Panel-robuste Standardfehler August 25, 2009 Josef Brüderl Page 17

An Example: Male Marital Wage Premium POLS RE-Modell FE-Modell Verheiratet 0.19*** 0.06 0.00 Alter 0.30*** 0.30*** 0.31*** Alter 2 / 100-0.42*** -0.43*** -0.42*** Personen 712 712 712 Personenjahre 2636 2636 2636 R 2 0.28 0.11 0.11 August 25, 2009 Josef Brüderl Page 18

Further Readings Lecture Notes by Josef Brüderl on Panel and EH Analysis http://www.sowi.uni-mannheim.de/lessm/lehre.html Textbooks Wooldridge, J. (2003) Introductory Econometrics. Thomson. Cameron, A.C. and P.K. Trivedi (2005) Microeconometrics. Panel Data Analysis Allison, P.D. (2005) Fixed Effects Regression Methods for Longitudinal Data Using SAS. SAS Press. Allison, P.D. (1994) Using Panel Data to Estimate the Effects of Events. Sociological Methods & Research 23: 174-199. Halaby, C. (2004) Panel Models in Sociological Research. Annual Rev. of Sociology 30: 507-544. EHA with repeated events Allison, P.D. (1996) Fixed-Effects Partial Likelihood for Repeated Events. Sociological Methods & Research 25: 207-222. August 25, 2009 Josef Brüderl Page 19