Week 3-1
Week 3-1
Analysis
Lecture 3
Introduction
Spring 2025
TS109- WEEK 3&4
Mohamed Abdallah
Lecturer of Applied
Statistics&Economerics
mohamed_stat@yahoo.com
01222596520
Econometric Analysis of Panel Data
E (v i ) E ( it ) 0
E (v i2 ) v2
E ( it2 ) 2 (both components homoscedastic)
E ( it v j ) 0 i ,t , j (independe nce of two components )
E ( it js ) 0 if t s or i j (no autocorrel ation)
E (v i v j ) 0 if i j (no across group correlatio n)
E (v i x it ) E ( it x it ) 0 (both independen t of regressor)
(We could also introduce an error component
which varies across time periods but not across
groups – two way random effects.)
Estimation of the random effects model cannot
be performed by OLS – instead a technique
known as generalised least squares (GLS) must
be used.
Error Components Model
Generalized Regression Model
E[ui2 | X i ] σ u2
y i =X iβ+ε i +uii for Ti observations
Notation
y1 X1 ε1 u1i1 T1 observations
y X ε u i T observations
β 2 2 2
2 2 2
y
N NX N N N TN observations
ε u i
= Xβ+ε+u Ni=1 Ti observations
= Xβ+w
In all that follows, except where explicitly noted, X, X i
and x it contain a constant term as the first element.
To avoid notational clutter, in those cases, x it etc. will
simply denote the counterpart without the constant term.
Use of the symbol K for the number of variables will thus
be context specific but will usually include the constant term.
Notation
2 u2 u2 u2
u2 2 u2 u2
Var[ε i +uii ]
u u2 2 u2
2
= 2I Ti u2ii Ti Ti
= 2I Ti u2ii
= Ωi
Ω1 0 0
0 Ω2 0 (Note these differ only
Var[w | X ]
in the dimension Ti )
0 0 ΩN
Regression Model-Orthogonality
1
plim X'w 0
# observations
1 1
plim N i=1 X i w i plim N Ni=1 X i (ε i +uii) 0
N
i1 Ti i1 Ti
1 N X iε i N X iii
plim N i=1 Ti + i=1 Tu
i i
i1 Ti Ti Ti
N X iε i N X iii Ti
plim i=1 fi + i=1 fi ui , 0 < fi N <1
Ti Ti i1 Ti
N X iε i N 1
plim i=1 fi + i=1 fi x iui 0 = if Ti T i
Ti N
Convergence of Moments
X X N X i X i
N
i1 fi a weighted sum of individual moment matrices
i1 T Ti
X ΩX N X iΩi X i
N
f
i1 i a weighted sum of individual moment matrices
i1 T Ti
X i X i
= 2 Ni1fi u2 Ni1fi x i x i
Ti
X i X i
Note asymptotics are with respect to N. Each matrix is the
Ti
moments for the Ti observations. Should be 'well behaved' in micro
level data. The average of N such matrices should be likewise.
T or Ti is assumed to be fixed (and small).
Random vs. Fixed Effects
Random Effects
Small number of parameters
Efficient estimation
Objectionable orthogonality assumption (ci Xi)
Fixed Effects
Robust – generally consistent
Large number of parameters
Ordinary Least Squares
Standard results for OLS in a GR model
Consistent
Unbiased
Inefficient
True Variance
1 1
1 X X X ΩX X X
Var[b | X]
Ni1 Ti Ni1 Ti Ni1 Ti Ni1 Ti
0 Q-1 Q * Q-1
0 as N with our convergence assumptions
Choosing between Fixed Effects (FE) and Random Effects
(RE)
1. With large T and small N there is likely to be little
difference, so FE is preferable as it is easier to compute
2. With large N and small T, estimates can differ
significantly. If the cross-sectional groups are a random
sample of the population RE is preferable. If not the FE is
preferable.
3. If the error component, vi , is correlated with x then RE
is biased, but FE is not.
4. For large N and small T and if the assumptions behind
RE hold then RE is more efficient than FE.
Estimating the Variance for OLS
1 1
1 X X X ΩX X X
Var[b | X] N N N
i1 Ti i1 Ti i1 Ti Ni1 Ti
X ΩX X iΩi X i
N
N
i1 fi , where = Ωi=E[w i wi | X i ]
i1 T Ti
In the spirit of the White estimator, use
X ΩX X i w ˆ i X i
ˆ iw
N
N
f
i1 i
ˆ i = y i - X ib
, w
i1 T Ti
Hypothesis tests are then based on Wald statistics.