Documente Academic
Documente Profesional
Documente Cultură
Lecture 1:
Static Panel Data Modelling
Slide 1 of 48
Lecture objectives :
1. Explain the nature of panel data
2. Discuss the modelling of time effects and estimation
of robust standard errors.
3. Discuss the estimation and testing of the random and
fixed effects models.
Slide 2 of 48
1. Introduction
2. The example dataset
3. Time effects
4. Robust standard errors
5. The random effects model
6. The fixed effects model
7. Summary
Slide 3 of 48
1
Introduction
Slide 4 of 48
1. Introduction
Year
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
Firm 1
Invest Assets
33.1 1170.6
45
2015.8
77.2 2803.3
44.6 2039.7
48.1 2256.2
74.4 2132.2
113 1834.1
91.9
1588
61.3 1749.4
56.8 1687.2
93.6 2007.7
Firm 2
Invest Assets
317.6 3078.5
391.8 4661.7
410.6 5387.1
257.7 2792.2
330.8 4313.2
461.2 4643.9
512 4551.2
448 3244.1
499.6 4053.7
547.5 4379.3
561.2 4840.9
Firm 3
Invest Assets
209.9 1362.4
355.3 1807.1
469.9 2673.3
262.3 1801.9
230.4 1957.3
361.6 2202.9
472.8 2380.5
445.6 2168.6
361.6 1985.1
288.2 1813.9
258.7 1850.2
Firm 4
Invest Assets
12.93 191.5
25.9
516
35.05
729
22.89 560.4
18.84 519.9
28.57 628.5
48.51 537.1
43.34 561.2
37.02 617.2
37.81 626.7
39.27 737.2
Slide 5 of 48
1. Introduction
Firm
1
1
1
1
2
2
2
2
3
3
3
3
4
4
4
4
Year
1980
1981
1980
1981
1980
1981
1980
1981
Invest
33.1
45
317.6
391.8
Assets
1170.6
2015.8
3078.5
4661.7
209.9 1362.4
355.3 1807.1
12.93 191.5
25.9
516
Slide 6 of 48
1. Introduction
Slide 7 of 48
1. Introduction
The good news is that there are formal statistical tests that
help identify the winner of this race, and in this lecture we will
discuss the practical implementation of these tests via an
empirical example. A typical panel data model can be written as
= 0 + 1 + + ; i=1,,N;t=1,.T
~ 0, 2
~ 0, 2
Slide 8 of 48
1. Introduction
A three-horse race:
1. There are no individual effects, that is 2 =0 or = 0 for
all i, in which case OLS will be most appropriate .
2. There are individual effects and these are not correlated
with the regressor x. In this case the random effects
estimator will be most appropriate .
3. There are individual effects and these are correlated with
the regressor x. In this case, the fixed effects estimator
is the only appropriate method, and the OLS and random
effects estimators should not be used.
Slide 9 of 48
1. Introduction
Slide 10 of 48
2.
The example dataset
Slide 11 of 48
2. Example
dataset
Slide 12 of 48
2. Example
dataset
Slide 13 of 48
2. Example
dataset
We can see that the panel data span the period 2003 to 2006, and
it is a balanced panel. That is all companies were observed over
the whole period.
In an unbalanced panel data, different panel units have different
number of observations.
- e.g. some companies might be observed from 2003 to
2006, while others are observed for 2004 and 2005 only.
Slide 14 of 48
2. Example
dataset
Slide 15 of 48
2. Example
dataset
Slide 16 of 48
3.
Time effects
Slide 17 of 48
3. Time effects
Slide 18 of 48
3. Time effects
Is the profit function really stable over the time period 2003-2006?
Do all of the companies really have the same profits function?
The pooled model ignores company heterogeneity and time
differences, and this might lead to wrong conclusions. It is
therefore advisable to check whether pooling is appropriate.
One possibility is to test for time effects. For example, business
cycle effects might be important in determining the overall level
of company profitability. We can explore this possibility by reestimating the model with year dummies.
Slide 19 of 48
3. Time effects
Slide 20 of 48
3. Time effects
Slide 21 of 48
3. Time effects
No evidence that time (year) effects are significant. This means that
the average level of profits (conditional on the regressors) has not
fluctuated much during the sample period.
Slide 22 of 48
3. Time effects
Slide 23 of 48
4.
Robust standard errors
Slide 24 of 48
4. Robust
standard
errors
Slide 25 of 48
4. Robust
standard
errors
yit xit e it
i 1,...N ; t 1,..., T .
Cove it , e is 0
Let ols and eit yit xit ols denote the OLS estimator
and the estimated residual term.
Slide 26 of 48
4. Robust
standard
errors
V ols W WW
Where
W xit xit
i 1 t 1
and
Slide 27 of 48
4. Robust
standard
errors
Slide 28 of 48
5.
The Random Effects Model
Slide 29 of 48
5. Random
effects model
Recall that:
1. A panel data model is called a random effects model if
ui is not correlated with the regressors.
Slide 30 of 48
5. Random
effects model
Consider the following panel data model with the individual specific
effects ui are assumed to be uncorrelated with the regressor, x:
= 0 + 1 + +
~ 0, 2 and ~ 0, 2
i=1, .N; t=1, ,T.
It can be shown that the model is best estimated by Generalised Least
Squares ( GLS). The model is called the random effects model and the GLS
estimator is usually called the random effects estimator. To demonstrate
the mechanics of the random effects estimator, define the time means of
y and x as
T
xit
yi
L14025 Applied Microeconometrics
yit
i 1
and
xi i 1
T
Slide 31 of 48
5. Random
effects model
( ) = 0 1 + 1 ( ) +
where
=1
2 +2
= 1 + ( )
The above transformation is sometimes called the GLS
transformation.
In unbalanced panel with i=1, .N; t=1, ,Ti, the above
transformation factor will have to be individual specific, i.e.
2
= 1
2 + 2
L14025 Applied Microeconometrics
Slide 32 of 48
5. Random
effects model
Slide 33 of 48
5. Random
effects model
Slide 34 of 48
5. Random
effects model
i 1 t 1 it
NT
LM
1
N T
2
2T 1
e
it
i 1i 1
Slide 35 of 48
5. Random
effects model
Slide 36 of 48
6.
The Fixed Effects Model
Slide 37 of 48
6. Fixed effects
model
Slide 38 of 48
6. Fixed effects
model
( ) = 1 ( ) + ( )
The resulting estimator is called the within estimator, and it unbiased
and consistent.
Slide 39 of 48
6. Fixed effects
model
An alternative to the within transformation for dealing with regressorindividual effects correlation is the first-differenced transformation:
( 1 ) = 1 ( 1 ) + ( 1 )
However,
drawback
of
the
within
and
first-differenced
transformations is that they also eliminate all variables that are timeinvariant. For example if the profitability regression model includes the
gender of the manager as an explanatory variable, this variable will
drop out of the transformed model.
Slide 40 of 48
6. Fixed effects
model
The fixed effects estimator is also called least squares dummy variables
estimator. Here 249 companies dummies are (implicitly) used, and the Ftest shows that these are jointly significant: another evidence that there
are individual specific effects.
L14025 Applied Microeconometrics
Slide 41 of 48
6. Fixed effects
model
Slide 42 of 48
6. Fixed effects
model
Where the FEM and REM indices are used to denote the fixed and random
effects estimators respectively, and
Slide 43 of 48
6. Fixed effects
model
Going back to our empirical example, results from the random effects
(RE) estimator appear to suggest that there is no relationship
between advertisement and profitability. By contrast the fixed effect
(FE) estimator would appear to suggest that advertisement works.
Which model should we trust more? Enter the Hausman test!
Slide 44 of 48
6. Fixed effects
model
= 0 1 + 1 ( ) + 2 ( ) +
Slide 45 of 48
6. Fixed effects
model
Slide 46 of 48
7.
Summary
Slide 47 of 48
7. Summary
The estimation of static linear panel data models boils down to the
choice between three estimators:
1.
3.
The Hausman test helps us decide whether this is the case or not. If the
individual heterogeneity is correlated with the independent variables, the
fixed effects model should be used.
THANK YOU!
Slide 48 of 48