




















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Regression Extensions, Linear Individual Effects Models, Heteroscedasticity, Autocorrelation, Covariance Structures, Measurement Error, Spatial Autocorrelation, LSDV Residuals are points which describes this lecture importance in Econometric Analysis of Panel Data course.
Typology: Slides
1 / 60
This page cannot be seen from the preview
Don't miss anything!
7. Regression Extensions of Linear
Individual Effects Models
Extensions
OLS Estimation
i
i i
1
N N
i 1 i 1
−
= =
F F
i i i i F i
R R
i i i R i
M M M M
M i i i i
1 1
N N N
i 1 i 1 i 1
− −
= = =
M M M M M M M M
M i i i i i i i i
GLS Estimation
2 2 2 2 2
u i
2
1
N N
i 1 i 1
ε ε ε
−
= =
i
M -1 M M -1 M -
R i i i i i i i
2
i
1
2 N
i 1
−
ε =
M -1 M
R i i i
Baltagi and Griffin’s Gasoline Data
World Gasoline Demand Data, 18 OECD Countries, 19 years
Variables in the file are
COUNTRY = name of country
YEAR = year, 1960-
LGASPCAR = log of consumption per car
LINCOMEP = log of per capita income
LRPMG = log of real price of gasoline
LCARPCAP = log of per capita number of cars
See Baltagi (2001, p. 24) for analysis of these data. The article on which the
analysis is based is Baltagi, B. and Griffin, J., "Gasoline Demand in the OECD: An
Application of Pooling and Testing Procedures," European Economic Review, 22,
1983, pp. 117-137. The data were downloaded from the website for Baltagi's
text.
Heteroscedastic Gasoline Data
Baltagi Gasoline Data - 18 countries, 19 years
COUNTRY
3.
4.
4.
5.
5.
6.
6.
3.
0 5 10 15 20
LGASPCAR
Evidence of Heteroscedasticity
Country Specific Residual Variances
COUNTRY
.
.
.
.
.
.
0 5 10 15 20
VI
Heteroscedasticity in the FE Model
Within groups estimation as usual.
Standard treatment – this is just a (large) linear
regression model.
White estimator
i
1
N N
i 1 i 1
1 1
N N T 2 N
i 1 i 1 ,it it i it i i 1
1
N N
i 1 i 1
Var[ | ] ( )( )
White Robust Covariance Matrix Estimator
Est.Var[ | ]
−
= =
− −
= = ε =
−
= =
= Σ Σ Σ σ − − Σ
i i
i D i i D i
i i
i D i t=1 i D i
i
i D i
b X M X X M y
b X X M X x x x x X M X
b X X M X
i
1
T 2 N
it it i it i i 1
e ( )( )
−
=
i
t=1 i D i
x x x x X M X
Heteroscedasticity in Gasoline Data
+----------------------------------------------------+
| Least Squares with Group Dummy Variables |
| LHS=LGASPCAR Mean = 4.296242 |
| Fit R-squared = .9733657 |
| Adjusted R-squared = .9717062 |
+----------------------------------------------------+
Least Squares - Within
+---------+--------------+----------------+--------+---------+----------+
|Variable | Coefficient | Standard Error |t-ratio |P[|T|>t] | Mean of X|
+---------+--------------+----------------+--------+---------+----------+
LINCOMEP .66224966 .07338604 9.024 .0000 -6.
LRPMG -.32170246 .04409925 -7.295 .0000 -.
LCARPCAP -.64048288 .02967885 -21.580 .0000 -9.
+---------+--------------+----------------+--------+---------+----------+
White Estimator
+---------+--------------+----------------+--------+---------+----------+
LINCOMEP .66224966 .07277408 9.100 .0000 -6.
LRPMG -.32170246 .05381258 -5.978 .0000 -.
LCARPCAP -.64048288 .03876145 -16.524 .0000 -9.
+---------+--------------+----------------+--------+---------+----------+
White Estimator using Grouping
+---------+--------------+----------------+--------+---------+----------+
LINCOMEP .66224966 .06238100 10.616 .0000 -6.
LRPMG -.32170246 .05197389 -6.190 .0000 -.
LCARPCAP -.64048288 .03035538 -21.099 .0000 -9.
Feasible GLS
i
T 2
2
it
,i
i
e
ˆ
T
ε
Σ
σ =
t=
2
,it
2 2 2
it i ,i i ,i
1
N N
i 1 i 1
ε
ε ε
−
= =
i
i -1 i i -1 i
i D i D i i D i D i
1
N N
i 1 i 1 2 2
,i ,i
−
= =
ε ε
i i
i D i i D i
i i i
2
,i
ε
Modeling the Scedastic Function
2 2
,i i i
2 2
,i i
2 2
,i i
Suppose = a function of , e.g., = f( ).
Any consistent estimator of = f( ) brings
full efficiency to FGLS. E.g.,
= exp ( )
Estimate using ordinary least squares app
ε ε
ε ε
ε ε
′ σ σ
′ σ σ
′
σ σ
z z δ
z δ
z δ
2 2
it i it
lied to
log(e ) log + + w
Second step FGLS using these estimates
ε
′ = σ z δ
Two Step Estimation
i
T 2
2 2 2 it
,iR ,iM i
i
Benefit to modeling the scedastic function vs. using the robust estimator:
e
vs. = exp ( ) ˆ ˆ ˆ
Inconsistent; T Consistent in N
is fixed.
ε ε ε
σ = σ σ
t=
z δ
Fixed T is irrelevant
Does it matter? Do the two matrices converge to the same matrix?
N N
i 1 i 1 2 2
,iR ,iM
vs.
It is very unlikely to matter very much.
What if we use Harvey's maximum likelihood estimator instead of LS.
Unlikely t
= =
ε ε
σ σ
i i
i D i i D i
o matter. In Harvey's model, the OLS estimator is consistent in NT.
Downside: What if the specified function is wrong.
Probably still doesn't matter much.
Ordinary Least Squares
Standard results for OLS in a GR model
Variance does (we expect) converge to zero;
1 1
N N N
i 1 i 1 i 1
N N N N
i 1 i i 1 i i 1 i i 1 i
1 1
N N N
i 1 i i 1 i i 1 i i N
i 1 i i i i
Var[ | ]
f f f , 0 < f < 1.
− −
= = =
= = = =
− −
= = =
=
i i i i i i i
ii i i i i ii i
b X
i
i
1 1
N N T 2 N
i 1 i 1 it it it i 1
T 1 N
i=1 t=1 it it t=
− −
= = =
−
i i t=1 i i
i
T 1
it it
−