Spatial Econometric Analysis Using GAUSS 1 Kuan-Pin Lin Portland State University.
Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.
-
Upload
osborne-snow -
Category
Documents
-
view
228 -
download
0
description
Transcript of Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.
![Page 1: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/1.jpg)
Panel Data Analysis Using GAUSS
2
Kuan-Pin LinPortland State University
![Page 2: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/2.jpg)
Fixed Effects Model
Within Model Representation'
'
' '
'
( ) ( )
it it i it
i i i i
it i it i it i
it it it
y u e
y u e
y y e e
y e
x β
x β
x x β
x β
'1 , ( 0, ' )
i i i
i i i
T T T T
orQ Q Q
where Q Q Q Q QT
y X β ey X β e
I i i i
![Page 3: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/3.jpg)
Fixed Effects Model
Model Assumptions
2
2
2 2 '
( | ) 0
( | ) (1 1/ )
( , | , ) ( 1/ ) 0,
1( | ) ( )
( | )
it it
it it e
it is it is e
i i e e T T T
N
E e
Var e T
Cov e e T t s
Var QT
Var
x
x
x x
e X I i i
e X Ω I
![Page 4: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/4.jpg)
Fixed Effects Model Model Estimation
Within Estimator: FE-GLS
1' 1 ' ' '
1 1
' 1 ' ' 1
1 12 ' ' '
1 1 1
12 '
1
2
ˆ ( )
ˆˆ ( ) ( ) ( )
ˆ
ˆ
ˆˆ '
i i i
N NOLS i i i ii i
OLS
N N Ne i i i i i ii i i
Ne i ii
e
Var
Q
y X β e y Xβ e
β XX Xy X X X y
β XX XΩX XX
X X X X X X
X X
e
ˆ ˆ/ ( ),NT N K e e y Xβ
![Page 5: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/5.jpg)
Fixed Effects Model Model Estimation: Transformation Approach
Let [FT,T-1,1T/T] be the orthonormal matrix of the eigenvectors of QT = IT-iTi’T/T, where FT,T-1 is the Tx(T-1) eigenvector matrix corresponding to the eigenvalues of 1. Define* * * * * * * 2
( 1)
1*' * 1 *' * *' * *' *
1 1
12 *' * 1 2 *' *
1
2 *' * * * *
, ~ ( , )
ˆ ( )
ˆˆ ˆ ˆ( ) ( )
ˆ ˆ ˆ ˆˆ / ( ),
i i i e N T
N NOLS i i i ii i
NOLS e e i ii
e
iid
Var
NT N K
N
y X β e y X β e e 0 I
β X X X y X X X y
β X X X X
e e e y X β
*' * 'ˆ ˆ ˆ ˆ ˆ ˆ:ote with e e e e e y Xβ
* ' * ' * ', 1 , 1 , , 1 , 1 , , 1 , 1 ,, ,i T T T i T i T T T i T i T T T i T y F y x F x e F e
![Page 6: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/6.jpg)
Fixed Effects Model Model Estimation
Panel-Robust Variance-Covariance Matrix Consistent statistical inference for general
heteroscedasticity, time series and cross section correlation.
1 1' ' ' '
1 1 1
1 1' ' '
1 1 1 1 1 1 1
ˆ ˆ ˆˆ ( ) [( )( ) ']
ˆ ˆ
ˆ ˆ
ˆˆ ˆ,
i i i i
N N Ni i i i i i i ii i i
N T N T T N Tit it it is it is it iti t i t s i t
i i i it it
Var E
e e
e y
β β β β β
X X X e e X X X
x x x x x x
e y X β
' ˆitx β
![Page 7: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/7.jpg)
Fixed Effects Model Model Estimation: ML
Normality Assumption'
2
'
2 2
( 1, 2,..., )( 1,2,..., )
~ ( , )
, , ,1
~ (0, ), '
i
it it i it
i i i T i
i e T
i i i i i i i i i
T T T
i e e
y u e t Tu i N
normal iid
with Q Q Q
QT
normal where QQ Q
x βy X β i e
e 0 I
y X β e y y X X e e
I i i
e
![Page 8: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/8.jpg)
Fixed Effects Model Model Estimation: ML
Log-Likelihood Function
Since Q is singular and |Q|=0, we use orthonomral transformation of the eigenvectors of Q, we maximize
2 ' 1
2 ' 12
1 1( , | , ) ln 2 ln2 2 2
1 1ln 2 ln( ) ln2 2 2 2
i e i i i i
e i ie
Tll
T T Q Q
β y X e e
e e
* 2 2 *' *2
1 1 1( , | , ) ln 2 ln( )2 2 2i e i i e i i
e
T Tll
β y X e e
![Page 9: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/9.jpg)
Fixed Effects Model Model Estimation: ML
ML Estimator
2 * 21
*' *2 * * *1
*' * '1 1
ˆ( , ) argmax ( , | , )
ˆ ˆˆ ˆˆ ,
( 1)
ˆ ˆ ˆ ˆ ˆ ˆ:
Ne ML i e i ii
Ni ii
e i i i
N Ni i i i i i ii i
ll
N T
Note with
β β y X
e ee y X β
e e e e e y X β
![Page 10: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/10.jpg)
Fixed Effects ModelHypothesis Testing
Pool or Not Pool F-Test based on dummy
variable model: constant or zero coefficients for D w.r.t F(N-1,NT-N-K)
F-test based on fixed effects (unrestricted) model vs. pooled (restricted) model
'
'
. ( , )it it i it
i
it it it
y u evs u u i
y u e
x β
x β
' '
( ) / 1 ~ ( 1, )/ ( )
ˆ ˆ ˆ ˆ,
R UR
UR
UR FE FE R PO PO
RSS RSS NF F N NT N KRSS NT N K
RSS RSS
e e e e
![Page 11: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/11.jpg)
First-Difference Model First-Difference Representation
Model Assumptions
' ' '1 1 1( ) ( ) ( ) , 2,...,it it it it i i it it it it ity y u u e e y e t T x x β x β
2
2
2
( | ) 0, ~ (0, )
( | ) 2
| | 1( , | , )
0
it it it e
it it e
eit is it is
E e given e iid
Var e
if t sCov e e
otherwise
x
x
x x
2 2 21 1
2 1 0 0 01 2 1 0 00 1 2 1 0
( | ) ( | ) ( )
0 0 1 2 10 0 0 1 2
( )
i i e T e e N TVar Var I
Toepliz form
e X e X
![Page 12: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/12.jpg)
First-Difference ModelModel Estimation First-Difference Estimator: OLS
Consistent statistical inference for general heteroscedasticity, time series and cross section correlation should be based on panel-robust variance-covariance matrix.
1' 1 ' ' '
1 1
2 ' 1 ' ' 1
1 12 ' ' '
1 1 1
22 2
ˆ ( )
ˆˆ ˆ( ) ( ) ( )
ˆ
ˆ ˆ ˆˆ ˆ, ' / (2
i i i
N NOLS i i i ii i
OLS e
N N Ne i i i i i i ii i i
ee e
Var
N
y X β e y Xβ e
β X X X y X X X y
β X X XΩ X X X
X X X X X X
e e ˆˆ),T N K e y Xβ
![Page 13: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/13.jpg)
First-Difference ModelModel Estimation
First-Difference Estimator: GLS' 1 1 ' 1
1' 1 ' 1
1 1
2 ' 1 1
12 ' 1
1
22 2
ˆ ( )
ˆˆ ˆ( ) ( )
ˆ
ˆ ˆˆ ˆ ˆˆ ˆ, ' / ( ),2
GLS
N Ni i i i i ii i
GLS e
Ne i i ii
ee e
Var
NT N K
β XΩ X XΩ y
X X X y
β XΩ X
X X
e e e y Xβ
![Page 14: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/14.jpg)
First-Difference ModelModel Estimation: Transformation Approach The first-difference operator is a (T-1)xT matrix with
elements:
Using the transformation matrix (, then we have the Forward Orthogonal Deviation Model:
11 1, 1,... 1; 1,...,0
ts
if s tif s t t T s Totherwise
' 2
' ' '
' '
1 1 1
, ~ (0, )
( ), ( ), ( ),1
1 1 1, ,
it iitt it it e
F F Fit t it it iitt t it it it t it it t
T T TF F Fit is it is it is
s t s t s t
y e e iid
T ty c y y c e c e e cT t
y y e eT t T t T t
x
x x x
x x
![Page 15: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/15.jpg)
First-Difference ModelModel Estimation: Transformation Approach FD-GLS
Consistent statistical inference for general heteroscedasticity, time series and cross section correlation should be based on panel-robust variance-covariance matrix.
1' 1 ' ' '
1 1
12 ' 1 2 '
1
2
ˆ ( )
ˆˆ ˆ ˆ( ) ( )
ˆ ˆ ˆ ˆˆ ' / ( ),
i i i
N NOLS i i i ii i
NOLS e e i ii
e
Var
NT N K
y X β e y Xβ e
β XX XX X X X X
β XX X X
e e e y Xβ
![Page 16: Panel Data Analysis Using GAUSS 2 Kuan-Pin Lin Portland State University.](https://reader035.fdocuments.in/reader035/viewer/2022081507/5a4d1b257f8b9ab059996dd4/html5/thumbnails/16.jpg)
References B. H. Baltagi, Econometric Analysis of Panel Data, 4th
ed., John Wiley, New York, 2008. W. H. Greene, Econometric Analysis, 7th ed., Chapter
11: Models for Panel Data, Prentice Hall, 2011. C. Hsiao, Analysis of Panel Data, 2nd ed., Cambridge
University Press, 2003. J. M. Wooldridge, Econometric Analysis of Cross Section
and Panel Data, The MIT Press, 2002.