Docsity

Panel Data II: Fixed Effects in Econometrics by L. Imbens, UC Berkeley, Fall 2004, Study notes of Introduction to Econometrics

Toggle sidebar
bg1
Imbens, Lecture Notes 19, ARE213 Fall ’04 1
ARE213 Econometrics
Fall 2004 UC Berkeley Department of Agricultural and Resource Economics
Panel Data II: Fixed Effects
In this lecture we consider the same setup, with a linear model:
Yit =X0
itβ+ci+εit ,
with cian unobserved individual-specific, time-invariant component. However, compared to
the random effects discussion we relax the assumption that ciis independent of the observed
covariates Xit. We continue to maintain the exogeneity assumption on the residuals:
E[εit|Xi1,...,X
iT ,c
i]=0,
and in fact for inference we make the stronger assumption
E[εiε0
i|ci,X
i]=σ2·IT.
We consider a couple of estimators. The first is based on simply adding a N-dimensional
vector of time-invariant covariates Z, with its jth element for unit iin period equal to Zit,j :
Zit,j =1{i=j}.
Then if we define cto be the vector with typical element ci, we can write
Yit =X0
itβ+Z0
ic+εit.
The first estimator is just the least squares estimator for this regression function:
min
c,β X
i,t
(Yit −X0
itβ−Z0
ic)2.
pf3
pf4
pf5

Partial preview of the text

Download Panel Data II: Fixed Effects in Econometrics by L. Imbens, UC Berkeley, Fall 2004 and more Study notes Introduction to Econometrics in PDF only on Docsity!

ARE213 Econometrics

Fall 2004 UC Berkeley Department of Agricultural and Resource Economics

Panel Data II: Fixed Effects

In this lecture we consider the same setup, with a linear model:

Y

it

= X

′

it

β + c i

  • ε it

with c i

an unobserved individual-specific, time-invariant component. However, compared to

the random effects discussion we relax the assumption that c i

is independent of the observed

covariates X it

. We continue to maintain the exogeneity assumption on the residuals:

E[ε it

|X

i 1

,... , X

iT

, c i

] = 0,

and in fact for inference we make the stronger assumption

E[εiε

′

i

|ci, Xi] = σ

2

· IT.

We consider a couple of estimators. The first is based on simply adding a N-dimensional

vector of time-invariant covariates Z, with its jth element for unit i in period equal to Z it,j

Z

it,j

= 1{i = j}.

Then if we define c to be the vector with typical element ci, we can write

Y

it

= X

′

it

β + Z

′

i

c + ε it

The first estimator is just the least squares estimator for this regression function:

min

c,β

i,t

(Yit − X

′

it

β − Z

′

i

c)

2

.

The estimators for both β and c are unbiased. However, the estimators for c are not con-

sistent. As we get more and more observations, we do not get more information about c i

To see this, consider the special case without X it

. In that case ˆc i

t

Y

it

/T =

Y

i

, which

has variance σ

2

/T which does not go to zero as N goes to infinity. We call the estimator for

β the dummy variable estimator,

β dv

. A nice feature is that we can also use its associated

standard error. Here it is important that we estimate the error variance σ

2 as

NT − K − N

i,t

(Y

it

− X

′

it

β − Z

′

i

c)

2

,

and not just divide by N. The number of parameters, K (for β) and N (for c), increases

with the sample size so the degrees of freedom correction is important. Implementing this

estimator could be difficult if N is very large. The least squares estimator requires inverting

a (N + K) × (N + K) dimensional matrix.

The other estimators employ various techniques to remove c i

from the regression function.

For the second estimator define the unit averages

Y

i

T

T ∑

t=

Y

it

, and

X

i

T

T ∑

t=

X

it

as well as the deviations from the mean:

Y

it

= Y

it

Y

i

, and

X

it

= X

it

X

i

Note that in general we can write the T × K matrix of deviations from the means,

Xi, with

tth row equal to

X

′

it

, as

X

i

= AX

i

where

A = I

T

− ι T

ι T

/T,

First, note that

i

X

′

i

ε¨ i

i

X

′

i

A

′ Aε i

i

X

′

i

A

′ ε i

i

X

i

ε i

. Thus the variance of the

between estimator is

V (

β b

N

i=

X

′

i

X

i

− 1

N

2

i=

X

′

i

E[ε i

ε

′

i

]

X

i

N

i=

X

′

i

X

i

− 1

= σ

2

·

i=

X

′

i

X

i

− 1

In order to get the correct variance we just need to estimate σ

2

. Let us look at the residuals

from the between regression. The expectation of their square is equal to σ

2

(1 − 1 /T ). Hence

we can just average their squares, and then multiply by T /(T − 1) to get a consistent

estimator.

Another estimator estimator is based on differencing. Define

∆Yit = Yit − Yit− 1 , ∆Xit = Xit − Xit− 1 andDeltaεit = εit − εit− 1.

Then we can write

∆Y

it

′

X it

  • ∆ε it

for t = 2,... , T. OLS for this regression is consistent. If the original errors ε it

are uncor-

related we now get a more complicated covariance matrix with the first-differenced errors

correlated.

Fixed effect methods do not easily extend to nonlinear models. There are some excep-

tions where it is still possible to remove the individual component without distributional

or independence assumptions. A famous example is Chamberlain’s fixed effect logit model.

Consider the case with two periods. Conditional on the individual effect we have

Pr(Yit = 1|Xit, ci) =

exp(β

′ X it

  • c i

1 + exp(β

′ X it

  • c i

Chamberlain suggests looking at units with Y i 1

= Y

i 2

. Then

Pr(Y i 1

= 1|X

i 1

, X

i 2

, Y

i 1

= Y

i 2

) = E [Pr(Y i 1

= 1|X

i 1

, X

i 2

, Y

i 1

= Y

i 2

, c i

)| X

i 1

, X

i 2

, Y

i 1

= Y

i 2

]

= E

[

Pr(Y i 1

= 1, Y

i 2

= 0|X

i 1

, X

i 2

, c i

Pr(Y i 1

= 1, Y

i 2

= 0|X

i 1

, X

i 2

, c i

) + Pr(Y i 1

= 0, Y

i 2

= 1|X

i 1

, X

i 2

, c i

X

i 1

, X

i 2

]

exp(β

′ Xi 1 +ci)

1+exp(β

′ Xi 1 +ci)

1

1+exp(β

′ Xi 2 +ci)

exp(β

′ Xi 1 +ci)

1+exp(β

′ Xi 1 +ci)

1

1+exp(β

′ Xi 2 +ci)

1

1+exp(β

′ Xi 1 +ci)

exp(β

′ Xi 2 +ci)

1+exp(β

′ Xi 2 +ci)

exp(β

′ X i 1

  • c i

exp(β

′ X i 1

  • c i

) + exp(β

′ X i 2

  • c i

exp(β

′ (X i 1

− X

i 2

1 + exp(β

′ (X i 1

− X

i 2

which means we can just do a standard logistic regression for the observations with Y i 1

Y

i 2

using the first difference of the regressors. This does not work for the probit model,

demonstrating that this is a very special case.