



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




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:
it
′
it
β + c i
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
i 1
iT
, c i
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
it,j
= 1{i = j}.
Then if we define c to be the vector with typical element ci, we can write
it
′
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
it
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
i,t
it
′
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
i
T ∑
t=
it
, and
i
T ∑
t=
it
as well as the deviations from the mean:
it
it
i
, and
it
it
i
Note that in general we can write the T × K matrix of deviations from the means,
Xi, with
tth row equal to
′
it
, as
i
i
where
T
− ι T
ι T
First, note that
i
′
i
ε¨ i
i
′
i
′ Aε i
i
′
i
′ ε i
i
i
ε i
. Thus the variance of the
between estimator is
β b
i=
′
i
i
− 1
2
i=
′
i
E[ε i
ε
′
i
i
i=
′
i
i
− 1
= σ
2
·
i=
′
i
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
it
′
X 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
1 + exp(β
′ X it
Chamberlain suggests looking at units with Y i 1
i 2
. Then
Pr(Y i 1
i 1
i 2
i 1
i 2
) = E [Pr(Y i 1
i 1
i 2
i 1
i 2
, c i
i 1
i 2
i 1
i 2
Pr(Y i 1
i 2
i 1
i 2
, c i
Pr(Y i 1
i 2
i 1
i 2
, c i
) + Pr(Y i 1
i 2
i 1
i 2
, c i
i 1
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
exp(β
′ X i 1
) + exp(β
′ X i 2
exp(β
′ (X i 1
i 2
1 + exp(β
′ (X i 1
i 2
which means we can just do a standard logistic regression for the observations with Y i 1
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.