Error Component Models

25
Error Component Models Methods of Economic Investigation Lecture 8 1

description

Error Component Models. Methods of Economic Investigation Lecture 8. Today’s Lecture. Review of Omitted Variables Bias Error component models Fixed Effects Random Effects. Omitted Variable Bias Formula. True Relationship Y = α + β T + γ X+ ε We estimate - PowerPoint PPT Presentation

Transcript of Error Component Models

Page 1: Error Component Models

Error Component Models

Methods of Economic Investigation

Lecture 8

1

Page 2: Error Component Models

Today’s Lecture Review of Omitted Variables Bias

Error component models Fixed Effects Random Effects

2

Page 3: Error Component Models

Omitted Variable Bias Formula

True Relationship Y = α + βT +γX+ε We estimate

We get a bias from the omitted variable

3

Page 4: Error Component Models

A specific form of this… Suppose we had to estimate

Where the error term can be decomposed into:

ijijij XY

ijjiij

Individual specific factor Going to set this to zero for ease of exposition

Group specific factor

Random error term uncorrelated with everything else

4

Page 5: Error Component Models

What are the problems with this? Errors have cross-correlation across terms

OLS is not efficient Still get consistent estimates, but may be

harder to do inference

If X is correlated with γ or δ and we cannot observe this factor, then our OLS estimates will be biased

5

Page 6: Error Component Models

Unobserved effects are not correlated with X’s

This can happen if the group effect is ‘random’ Maybe different geographic areas, not correlated

with X Different within-group correlations, violate OLS

assumptions that errors uncorrelated with each other

Don’t have to worry about OVB

Still have problems with standard error OLS not efficient Can’t do inference with our estimates

6

Page 7: Error Component Models

OLS standard errors Usually estimate

Standard way to estimate variance of OLS estimates not valid—won’t necessarily be the same across j’s:

ijijijjijij XXY

1

,

2 ')ˆ(

jiijijXXV

7

Page 8: Error Component Models

Robust Standard Errors Estimate the residuals:

Then estimate standard errors

Consistent, but may be able to do better…

ijijij XY

11

'''')ˆ(

ijijij

ijijijijij

jjj XXXXXXV

8

Page 9: Error Component Models

Exploiting the Random Effects Structure We have more information than we’re

using in the robust standard errors

The composite error means there is correlation within groups j but not between groups

Define where]'[ jjE ),...,( KJiJj

9

Page 10: Error Component Models

FGLS Estimates—2 steps Estimate OLS and get

Get weighting matrix

Can now adjust the regression for the known correlation

OLSijijij XY ˆˆ

j

jjJ]ˆ'ˆ[1ˆ

jjj

jjjOLS YXXX 1

1

1 ˆˆ̂

10

Page 11: Error Component Models

FGLS Variance Estimate With a variance

If our model is correctly specified, this will simplify to:

1

111

1

1 '')ˆ(

jjj

jjjjj

jjj XXXXXXV

1

1)ˆ(

jjj XXV

11

Page 12: Error Component Models

Simplify, let So we need to estimate:

When might this happen? Individuals are part of some “group” and that

group has a unique relationship to the outcomes (relative to other groups)

Looking in a time period—that time period is related to the outcome differently than other time periods

ijjij

ijjijij XY

Unobserved effects are correlated with X’s

12

Page 13: Error Component Models

What does a group specific term do?

]2|[ jYE ij

]3|[ jYE ij

]1|[ jYE ij

X

Y

13

Page 14: Error Component Models

How might we fix this? If we could observe multiple individuals in

a group j, then we could difference out the group effect

So for example: look at individuals 1 & 2, both of whom are in group 1

1111111 XY

2112121 XY14

Page 15: Error Component Models

Differencing out Group Effects Difference between individuals 1 and 2,

gives us the following estimate:

How do we interpret this? β tells us how a change in the difference in X’s

between people 1 and 2, changes the difference in outcomes between people 1 and two

Often don’t really care about difference between 2 people…

)()( 112111211121 XXYY

15

Page 16: Error Component Models

Average Group Effect Take the sample average outcome for

each group

Crucial assumption: average group effect is the group effect

This means: NO within group variation

jjjj XY

jNi

jjj

j N 1

16

Page 17: Error Component Models

Estimating Deviation from the Average Group Effect Difference individual and group average

equations:

Define ~ terms as deviation from means so we estimate:

So we can estimate this with our usual OLS (more on the standard errors in a few minutes…)

)()()( jijjjjijjij XXYY

ijijij XY ~~~

17

Page 18: Error Component Models

How do ‘fixed effects’ help? Define δj=1 for group j and zero for all

groups

Then we estimate:

And we will get an estimate for β1, our effect of X on Y, and δ our group effect

ijjijij XY ˆˆˆˆ10

18

Page 19: Error Component Models

Estimation To see how, imagine we have two groups:

men and women

If we estimated two equations then its:

We won’t recover β0 separate from the δ’s

imimmim XY ˆˆˆˆ10 ififfif XY ˆˆˆˆ

10

constant, cm constant, cf

19

Page 20: Error Component Models

Multiple Equation Estimation Let men be the base group, then for men

we estimate:

What does this give us? CEF: E[Y| X, j=m] = δm + β*E[X | j=m] δm is the intercept for men or E[Y |X=0, j=m] If X is de-meaned, then this is the average effect

for men at the mean of the sample

imimmim XY ˆˆˆˆ 0

20

Page 21: Error Component Models

Why estimate a single equation?

Single equation easy to estimate: run a regression for each group separately BUT

Hard to do inference on size of group effect Lose some power if, conditional on group—the

effect of various X’s is the same

For example: Men and women on average have different starting

wages Conditional on starting level, each year of

additional experience, increases wages by some fixed %

21

Page 22: Error Component Models

Single equation estimation Now estimate for everyone:

For men this estimates

For women

imimmim XY ˆˆ)ˆˆ( 10

ijijmjfjmjij XY 10 )()(

ijijjm Xfemalec 1)(

ififmfmif XY ˆˆ)ˆˆ()ˆˆ( 10

Constant: E[Y |j=m, X=0]Additional “female” effect

22

Page 23: Error Component Models

How to interpret your “fixed effect”? The additional effect of women, relative to

men

Do we care about the fixed effects? Sometimes they have an interpretation e.g.

controlling for all observable factors, is there a different level of wages for men and women

Sometimes they are a just differencing out a bunch of things, and don’t have an interpretation, e.g. repeated observations on an individual, difference out an individual effect—not much interpretation for idiosyncratic individual effect 23

Page 24: Error Component Models

What did we learn today When have unobserved group effects can

be two issues: Uncorrelated with X’s: OLS not efficient, can fix

this with GLS Correlated with X’s: OVB, can include “fixed

effects”

Fixed effects, within-group differences, and deviation from means differences can all remove bias from unobserved group effect

24

Page 25: Error Component Models

Next Class Application: The effect of Schooling on

wages Ability Bias Fixing this with “twins” and “siblings” models

25