GLS. Miguel Sarzosa. Econ626: Empirical Microeconomics, Department of Economics University of Maryland

Similar documents
Introductory Econometrics

Heteroskedasticity. y i = β 0 + β 1 x 1i + β 2 x 2i β k x ki + e i. where E(e i. ) σ 2, non-constant variance.

Economics 582 Random Effects Estimation

Ordinary Least Squares Regression

Final Exam. Economics 835: Econometrics. Fall 2010

1 Introduction to Generalized Least Squares

Chapter 15 Panel Data Models. Pooling Time-Series and Cross-Section Data

Heteroskedasticity ECONOMETRICS (ECON 360) BEN VAN KAMMEN, PHD

Casuality and Programme Evaluation

Semester 2, 2015/2016

the error term could vary over the observations, in ways that are related

Multiple Regression Analysis

Questions and Answers on Heteroskedasticity, Autocorrelation and Generalized Least Squares

1 The Multiple Regression Model: Freeing Up the Classical Assumptions

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

Econometrics Multiple Regression Analysis: Heteroskedasticity

Introductory Econometrics. Lecture 13: Hypothesis testing in the multiple regression model, Part 1

Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data

Lecture 4: Linear panel models

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

Topic 7: Heteroskedasticity

Chapter 8 Heteroskedasticity

Lecture 4: Heteroskedasticity

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

The Exact Distribution of the t-ratio with Robust and Clustered Standard Errors

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Empirical Macroeconomics

Econometrics for PhDs

Multiple Regression Analysis: Heteroskedasticity

The Exact Distribution of the t-ratio with Robust and Clustered Standard Errors

Econ 582 Fixed Effects Estimation of Panel Data

Environmental Econometrics

Microeconometrics: Clustering. Ethan Kaplan

Reading Assignment. Serial Correlation and Heteroskedasticity. Chapters 12 and 11. Kennedy: Chapter 8. AREC-ECON 535 Lec F1 1

Short T Panels - Review

Reliability of inference (1 of 2 lectures)

Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16)

Empirical Application of Simple Regression (Chapter 2)

Lecture 9 SLR in Matrix Form

Answer Key: Problem Set 6

Heteroskedasticity. in the Error Component Model

Generalized Method of Moments: I. Chapter 9, R. Davidson and J.G. MacKinnon, Econometric Theory and Methods, 2004, Oxford.

A Course on Advanced Econometrics

Econometrics Honor s Exam Review Session. Spring 2012 Eunice Han

Day 1A Ordinary Least Squares and GLS

Econometrics of Panel Data

Extensions to the Basic Framework I

Intermediate Econometrics

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

LECTURE 2 LINEAR REGRESSION MODEL AND OLS

Capital humain, développement et migrations: approche macroéconomique (Empirical Analysis - Static Part)

Econometrics II. Nonstandard Standard Error Issues: A Guide for the. Practitioner

Multiple Equation GMM with Common Coefficients: Panel Data

POLSCI 702 Non-Normality and Heteroskedasticity

The linear regression model: functional form and structural breaks

ECON 4230 Intermediate Econometric Theory Exam

Applied Econometrics (QEM)

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

ECON 366: ECONOMETRICS II. SPRING TERM 2005: LAB EXERCISE #10 Nonspherical Errors Continued. Brief Suggested Solutions

Week 11 Heteroskedasticity and Autocorrelation

Course Econometrics I

Wooldridge, Introductory Econometrics, 2d ed. Chapter 8: Heteroskedasticity In laying out the standard regression model, we made the assumption of

Heteroskedasticity. We now consider the implications of relaxing the assumption that the conditional

Cross Sectional Time Series: The Normal Model and Panel Corrected Standard Errors

Introductory Econometrics

Introduction to Econometrics

1 Motivation for Instrumental Variable (IV) Regression

Density estimation Nonparametric conditional mean estimation Semiparametric conditional mean estimation. Nonparametrics. Gabriel Montes-Rojas

Econ 423 Lecture Notes

Heteroskedasticity. Part VII. Heteroskedasticity

ECON2228 Notes 10. Christopher F Baum. Boston College Economics. cfb (BC Econ) ECON2228 Notes / 48

The regression model with one fixed regressor cont d

Dynamic Regression Models (Lect 15)

The regression model with one stochastic regressor (part II)

EC312: Advanced Econometrics Problem Set 3 Solutions in Stata

LECTURE 13: TIME SERIES I

Economics 308: Econometrics Professor Moody

ECON2228 Notes 7. Christopher F Baum. Boston College Economics. cfb (BC Econ) ECON2228 Notes / 41

Introduction to Econometrics. Heteroskedasticity

Statistical Inference with Regression Analysis

Freeing up the Classical Assumptions. () Introductory Econometrics: Topic 5 1 / 94

ECON2228 Notes 10. Christopher F Baum. Boston College Economics. cfb (BC Econ) ECON2228 Notes / 54

Econometrics - 30C00200

Empirical Macroeconomics

OSU Economics 444: Elementary Econometrics. Ch.10 Heteroskedasticity

Cluster-Robust Inference

E 31501/4150 Properties of OLS estimators (Monte Carlo Analysis)

The Simple Regression Model. Simple Regression Model 1

ECONOMETRICS FIELD EXAM Michigan State University May 9, 2008

Graduate Econometrics Lecture 4: Heteroskedasticity

1 A Non-technical Introduction to Regression

Rewrap ECON November 18, () Rewrap ECON 4135 November 18, / 35

ECON 4551 Econometrics II Memorial University of Newfoundland. Panel Data Models. Adapted from Vera Tabakova s notes

LDA Midterm Due: 02/21/2005

GMM, HAC estimators, & Standard Errors for Business Cycle Statistics

Simple Linear Regression for the MPG Data

Statistics 910, #5 1. Regression Methods

Economics 620, Lecture 13: Time Series I

Statistics II. Management Degree Management Statistics IIDegree. Statistics II. 2 nd Sem. 2013/2014. Management Degree. Simple Linear Regression

Empirical Macroeconomics

Transcription:

GLS Miguel Sarzosa Department of Economics University of Maryland Econ626: Empirical Microeconomics, 2012

1 When any of the i s fail 2 Feasibility 3 Now we go to Stata!

GLS Fixes i s Failure Remember that for OLS estimates to work, the main assumption were compiled by the term i.i.d. In particular, the i s are crucial and easily breakable assumptions. I I Identically distributed (related to homoskedasticity) Independently distributed (related to correlation between regression residuals) GLS allows you to get appropriate estimates when the i s fail to be fulfilled The idea is simple and it is closely related to what we saw in robust estimation 1 Construct a positive semi-definite matrix 2 Use to transform the data 3 Run the regressions on the transformed data

Why GLS and not Robust Estimation When in presence of heteroskedasticity the researcher can take two approaches First, use Robust standard error estimation. I I Only care about correct standard errors, p-values and t-stats Easily implemente in Stata: vce(robust) Second, use GLS estimation I Need to model heteroskedasticity. That is, estimate a skedasticity function I Get more e cient estimates I More precise estimation of parameters and marginal e ects

How does it work? As an example we begin with a simple model of the form y = Xb + e Now suppose that the residuals have a structure such that E where 6= s 2 I Note that this is a general case that can account for heteroskedasticity or clustered data Note that 1 2 1 0 2 = I. So if we transform our model to 1 2 y = 1 2 Xb + 1 2 e h i ee 0 X =, the transformed error 1 2 e will be distributed (0,I) h i In the case where E ee 0 X = =diag si 2, 1 2 = diag ( 1 /s i ) so 1 2 e will be distributed (0,I)

From Theory to Reality is unknown, we do not know the real disturbances e The best we can do is to get a ê from a consistent first step, that will depend on a parameter vector ĝ and our data. That is, we will estimate ˆ = (ĝ). Di erent situations require di erent (g) and ˆ. For example: ˆ =N 1 Â N i=1^e i^e 0 i ˆ =Diag s 2 (z i ) Then our Feasible GLS estimator is h 1 ˆb FGLS = X ˆ Xi 0 X0 ˆ y Assuming that we have a consistent first step h i 1 Var ˆbFGLS = X 0 ˆ X

Weighted Least Squares The FGLS estimator requires us to specify (g) If (g) is misspecified, the FGLS is no longer e matrix of ˆb FGLS will be incorrect. cient and the var-cov Not surprisingly, the answer is to use a robust estimator of the var-cov matrix. We will still use a weighting matrix ˆ = (ĝ), but obtain a robust var-cov matrix of ˆb FGLS Assuming that we have a consistent first step h i 1 Var ˆbFGLS = X 0 ˆ X! N h  x i ˆ ẽi ẽ 0 ˆ x i 1 0 i i X 0 ˆ X i=1 This is an extension of the White heteroskedasticity-robust variance estimator

GLS in Many Settings Panel data y st = x 0 stb 1 + z 0 stb s 2 + n st (1) where z st = 1inastandardfixede ectsmodelorz st =[1,t] in a model with individual e ects and individual time trends. 1 Obtain ˆ by running a fixed-e ect regression 2 Reweight the data in (1) using ˆ 1 2,creatingỹ s = ˆ 1 2 y s, X s = ˆ 1 2 X s and Z s = ˆ 1 2 Z s. 3 Residualize ỹ s and X s by partialling out Z s.let M Zs = I T Zs Z 0 s Zs 1 Z 0 s,andformỹ s = M Zs ỹ s and Xs = M Zs Xs. 4 Obtain ˆb 1 by OLS regression of ỹ s on Xs.

GLS in Panel Data Stata uses command xtgls. This command allows estimation in the presence of: cross-sectional correlation (panels(iid) or panels(correlated)) heteroskedasticity across panels (panels(heteroskedastic)) It also allows for AR(1) autocorrelation within panels (corr(ar1) or corr(psar1)).

Where is xtgls in Trouble? Sometimes there is reason to believe the autocorrelation is of order greater than 1. xtgls is no longer useful. Suppose that n st follows an AR(p) process, i.e. n st = a 1 n s,t 1 + + a p n s,t p + e st E n s,t n s,(t+k) = gs (k) 6= 0 Then the matrix needs to incorporate this in order to be able to transform the data in the required way. Hansen (2007) provides a bias-corrected estimator of the autocorrelation parameters in fixed e ects panel data models and comes up with a way to create the correct ˆ. With which the estimation procedure detailed above can be used. Hansen s estimator is implemented in Stata by the xtargls command (if you need it for your research, ask me for it).

Now we go to Stata!