Panel Data Analysis of Microeconomic Decisions: Fall 2020
Panel Data Analysis of Microeconomic Decisions: Fall 2020
Panel Data Analysis of Microeconomic Decisions: Fall 2020
Fall 2020
Panel Data Analysis 2. static models
2. static models
Overview
2.1 Fixed effects model
2.3 Discussion
2.5 Goodness-of-fit
1
Panel Data Analysis 2. static models
• fixed effect analysis allows for arbitrary correlation between an unobserved individual-
specific effect αi and the xit
2
Panel Data Analysis 2. static models
3
Panel Data Analysis 2. static models
• it implies that explanatory variables in each time period are uncorrelated with the
idiosyncratic error in each time period
E(xituis) = 0, s, t = 1, . . . , T
• note: it still allows for arbitrary correlation between αi and xit for all t (we see later
how to deal with this)
• a strictly exogenous variable is not allowed to depend upon current, future, and
past values of the error term
4
Panel Data Analysis 2. static models
• Exercise:
1. The assumption of strict exogeneity does not work if lagged dependent
variables are included in the specification. Why? Illustrate the problem using
yit = x0itβ + uit and let be xit = yi,t−1
5
Panel Data Analysis 2. static models
• how can we obtain a consistent estimate β̂ for Equation (6) under strict exogeneity,
E(uit|xi1, xi2, . . . , xiT , αi) = 0, t = 1, . . . , T ?
6
Panel Data Analysis 2. static models
• we now can apply pooled OLS to the transformed model in Equation (7)
• necessary for consistency is that the key pooled OLS assumption (E(uitxit) = 0)
holds for transformed quantities
7
Panel Data Analysis 2. static models
• under strict exogeneity we can say even more than Equation (8):
– we know that E(uit − ūi|xit) = E(uit|xit) − E(ūi|xit) = 0, because every
1
PT
element of ūi = T t=1 uit is uncorrelated with xit
– and in turn this implies that E(uit − ūi|xit − x̄i) = 0, since each (xit − x̄i) is
just a function of xi1, . . . , xiT
• under strict exogeneity the OLS estimator for the transformed model is unbiased
• Equation (8) does not hold if we assume something weaker than strict exogeneity
– for example, only assuming E(xituit) = 0, does not ensure that xis is
uncorrelated with uit, s 6= t
– the problem is that ūi and x̄i are time averages and thus functions of their
values in t = 1, ...T
8
Panel Data Analysis 2. static models
FE estimator
PN 0
• assume that i=1 (xit − x̄i )(xit − x̄i ) is invertible (no perfect multicollinearity,
must be maintained for all moment estimators)
N X
T
!−1 N X
T
X X
β̂F E = (xit − x̄i)(xit − x̄i)0 (xit − x̄i)(yit − ȳi) (9)
i=1 t=1 i=1 t=1
9
Panel Data Analysis 2. static models
• applying within-transformation rules out estimating the individual specific effect α̂i
– we cannot obtain estimates for time-constant observables e.g. gender, race, or
other time-fixed attributes
– reason: not possible to distinguish effects of time-constant observables from
time-constant unobservables in αi
10
Panel Data Analysis 2. static models
11
Panel Data Analysis 2. static models
• α̂i then can be used to compute sample statistics to get an idea on how heterogeneity
is distributed in population
• Example using estimate of αi: Guner, Kulikova & Llull (2018): ”Marriage and
health: Selection, protection, and assortative mating” (link)
12
Panel Data Analysis 2. static models
• it is not obvious that this holds and we should check this (whiteboard)
13
Panel Data Analysis 2. static models
N X
T
!−1
X
V ar β̂F E = σu2 (xit − x̄i)(xit − x̄i)0
i=1 t=1
σ̂u2 = SSR/(N T − K)
14
Panel Data Analysis 2. static models
• Example: The Excel sheet illustrates differences in the degrees of freedom for
2 2
σ̂u,F E and σ̂u,P OLS for different N and T
• consequence: FE standard errors are too big and corrected (software) by a factor
1/2
{(N T − K)/ [N (T − 1) − K]}
15
Panel Data Analysis 2. static models
16
Panel Data Analysis 2. static models
• the first differenced model relies on same strict exogeneity assumption as within
transformed model
• strict exogeneity holds in the first differenced equation and thus this estimator is
unbiased
E(∆uit|∆xi2, ∆xi3, . . . , ∆xiT ) = 0
17
Panel Data Analysis 2. static models
∆yit on ∆xit, t = 2, . . . , T ; i = 1, . . . , N
N X
T
!−1 N X
T
X X
β̂F D = ∆xit∆x0it ∆xit∆yit (11)
i=1 t=2 i=1 t=2
• note: by taking first differences we lose one time period, such that we have T − 1
time periods for each i
18
Panel Data Analysis 2. static models
Errors in FD model
• FE estimator is efficient in class of estimators using the strict exogeneity assumption
– key efficiency FE: homoskedasticity and no serial correlation in uit
– under these assumptions, the FD estimator is less efficient than the FE estimator
• FD is the opposite extreme of FE: if uit are serially correlated, the FD estimator is
the most efficient one under strict exogeneity
19
Panel Data Analysis 2. static models
N X
T
!−1
\ X
Avar(β̂F D ) = σ̂e2 ∆xit∆x0it
i=1 t=2
• unlike in FE model, degrees of freedom are correct, as dropping the first period
appropriately captures the lost degrees of freedom
20
Panel Data Analysis 2. static models
• for T > 2 and under strict exogeneity, choice between FE and FD hinges on
assumption about idiosyncratic errors
– FE: more efficient if uit are serially uncorrelated
– FD: more efficient if uit follows random walk
• if FE and FD produce different results, likely that strict exogeneity does not hold
(FE and FD have different probability limits)
21
Panel Data Analysis 2. static models
22