econometric analysis of panel data hypothesis testing – specification tests fixed effects vs....

21
Econometric Analysis of Panel Data • Hypothesis Testing – Specification Tests • Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation • Serial Autocorrelation • Spatial Autocorrelation • More on Autocorrelation

Post on 20-Dec-2015

242 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Econometric Analysis of Panel Data

• Hypothesis Testing– Specification Tests• Fixed Effects vs. Random Effects

– Heteroscedasticity– Autocorrelation• Serial Autocorrelation• Spatial Autocorrelation

• More on Autocorrelation

Page 2: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis Testing

• Heteroscedasticity

• Serial Correlation

• Spatial Correlation

2

' 2

2, ( ) , ( ) it

i

i

e

it it i it i u it

e

y u e Var u Var e

x β

1'

1

, it itit it i it it

i it it

v ey u v v

v e

x β

' ,it it i it it ij jt itj

y u v v w v e x β

Page 3: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis Testing

• Heteroscedasticity'

,

2 2 ' ' '

2 2 ' ' '

2 2 2 ' 2

2 2 2 2 '

( ) ( ), 1,..., ( . ., )

( ) ( ), 1,..., , 1,..., ( . ., )

( )

( ) ( )

i

it

i

it

it it it it i it

i u u u i u i i

it e e e it e it it

u e u u i u e

it u e u e e it e

u

y u e

Var u h i N e g

Var e h i N t T e g

h

Var h

x β

f f x

z z x

f

z2 2 2 ' '( ) ( )i ite u u i u e it eh h

f z

' 2 2

2 2 2 '

2 2 2 2 2 '

: (.) 0, (0) 1, (0) 0, 0, 0

( ), 1,...,

( )

i i

i

u e

e e e e i e

u e u e e i e

Note h h h

A special case of is h i N

then h

z

z

Page 4: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Homoscedasticity

• If u2=0 (constant effects or pooled model), then

• LM Test (Breusch and Pagan, 1980)

'

2 2 ' 2 '( ) ( ) ( )it

it it i it

it e e e it e e e i e

y u e

Var e h or h

x β

z z

2

' ' 1 ' 2

0

2 2 2 '

'

2 2 2

2 2 20

1( 0) ( ) ~ (# )

2ˆˆ ˆ ˆ ˆˆ ˆ ˆ/ 1, / ,

[ , 1,..., , 1,..., ]

ˆ ˆ(1) Regress [ / 1] on , obtain ~ (# )2

ˆ(2) Regress , obtain ~ (# )

ue e

e e

it

e e

e e

LM G Z Z Z Z G

G NT u

Z i N t T

ESSZ

on Z NTR

e e e e y Xβ

z

e

e

0 : 0eH

Page 5: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Homoscedasticity

• If u2>0 (random effects), then

• LM Tests (Baltagi, Bresson, and Pirott, 2006)

'

2 2 '

2 2 ' 2 '

( ) ( )

( ) ( ) ( )

i

it

it it i it

i u u u i u

it e e e it e e e i e

y u e

Var u h

Var e h or h

x β

f

z z

0

0

0

: 0 | 0

: 0 | 0

: 0, 0

e u

u e

u e

H

H

H

Page 6: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Homoscedasticity

• Marginal LM Test

• See, Montes-Rojas and Sosa-Escudero (2011)

2 ' 2 20

'

' '

ˆ , ~ (# )

ˆ ˆ ˆ ˆ

( . ., , )

it it e e

it i it it it

it it

Regress on obtain NTR

where u e y

e g not including constant

z

x

z x

20 : 0 | 0, 0e u uH

Page 7: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis Testing Test for Homoscedasticity

• Marginal LM Test

• Joint LM Test– Sum of the above two marginal test statistics

(approximately)– See, Montes-Rojas and Sosa-Escudero (2011)

2 ' 2 20

'

1

' '

ˆ , ~ (# )

1ˆ ˆ ˆ ˆ ˆ ˆ,

( . ., )

i i u u

T

i it it i it it itt

i i

Regress on obtain NR

where u e yT

e g

f

x

f x

20 : 0 | 0, 0u e uH

20 : 0, 0 | 0u e uH

Page 8: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis Testing Testing for Homoscedasticity

• References– Batagi, B.H., G. Bresson, and A. Priotte, Joint LM Test for

Homoscedasticity in a One-Way Error Component Model, Journal of Econometrics, 134, 2006, 401-417.

– Breusch, T. and A. Pagan, “A Simple Test of Heteroscedasticity and Random Coefficient Variations,” Econometrica, 47, 1979, 1287-1294.

– Montes-Rojas, G. and W. Sosa-Escudero, Robust Tests for Heteroscedasticity in the One-Way Error Components Model, Journal of Econometrics, 2011, forthcoming.

Page 9: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis Testing

• Serial Correlation AR(1) in a Random Effects Model

• LM Test for Serial Correlation and Random Effects

' 2

21

, ~ (0, )

~ (0, )

it it i it i u

it it it e

y u v u iid

v v e iid

x β

20

20

20

: 0, 0

: 0 (assuming 0 pooled model)

: 0 (assuming 0 random effects model)

u

u

u

H

H or

H or

Page 10: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Serial Correlation

• LM Test Statistics: NotationsBased on OLS residuals of the restricted model (i.e. pooled model with no serial correlation)

2

'1 1

'2

1 1

' 11 21

'2

1 1

ˆˆ ˆ( )

1 1ˆ ˆ

ˆ

ˆ ˆˆ ˆ

ˆ ˆˆ

N T

iti tN T

N T

iti t

N T

it iti t

N T

iti t

eI J

Ae

e eB

e

e e

e e

e e

e e

Page 11: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Serial Correlation

• Marginal LM Test Statistic for a Pooled Model

– See Breusch and Pagan (1980)

• Marginal LM Test Statistic for Serial Correlation

– See Breusch and Godfrey (1981)

2 2 20 ( 0) ~ (1)

2( 1)u

NTLM A

T

2

22 2

0( 0) ~ (1)

( 1)u

NTLM B

T

Page 12: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Serial Correlation

• Robust LM Test Statistic

• See Baltagi and Li (1995)

2* 2 20 ( 0) 2 ~ (1)

2( 1)(1 2 / )u

NTLM B A

T T

2

22* 2

0( 0) / ~ (1)

( 1)(1 2 / )u

NTLM B A T

T T

Page 13: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Serial Correlation

• Joint LM Test Statistic for Pooled Model with Serial Correlation

• See Baltagi and Li (1995)

2 2 2 2( 0, 0) 4 2 ~ (2)2( 1)( 2)u

NTLM A AB TB

T T

2

2

2

2 20 0

* 20 0

2 *0 0

( 0, 0) ( 0) ( 0)

( 0) ( 0)

( 0) ( 0)

u

u

u

u u

u

u

LM LM LM

LM LM

LM LM

Page 14: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Serial Correlation

• LM Test Statistic for a Fixed Effects Model

– See Baltagi, Econometric Analysis of Panel Data (2008)

'221

'

ˆ ˆ( 0) ~ (1)

ˆ ˆ1ˆ ˆ

fixed effects

NTLM

T

residuals of mean deviation regression

e e

e e

e y Xβ

Page 15: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Hypothesis TestingTest for Serial Correlation

• References– Breusch, T. and A. Pagan, “A Simple Test of Heteroscedasticity and

Random Coefficient Variations,” Econometrica, 47, 1979, 1287-1294.– Breusch, T. and A. Pagan, “The LM Test and Its Applications to Model

Specification in Econometrics,” Review of Economic Studies, 47, 1980, 239-254.

– Breusch, T. and L.G. Godfrey, A Review of Recent Work on Testing for Autocorrelation in Dynamic Simultaneous Models, in D.A. Currie, R. Nobay and D. Peel (eds.), Macroeconomic Analysis, Essays in Macroeconomics and Economics (Croom Helm, London), 63-100.

– Baltagi, B.H. and Q. Li, Testing AR(1) Against MA(1) Disturbances in an Error Components Model, Journal of Econometrics, 68, 1995, 133-151.

Page 16: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Autocorrelation

• AR(1)

• Assumptions

'

1 ( 1,2,..., ; 1, 2,..., )it it i it

it it it i

y u e

e e t T i N

x β

'

' 2 ' 2 2 2

'1

'

( | ) 0

( | ) ( | ) (1 )

( , ) 0, ( , ) 0, ( , ) 0

( , ) 0 ( )

it it

it it it it e

it it it i it it

i it

E

Var Var e

Cov e Cov e u Cov e

Cov u random effects only

x

x x

x

x

Page 17: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Autocorrelation

• AR(1) Model Estimation (Paris-Winsten)– Begin with =0, estimate the model

– Transform variables according

' '

11 2

2

1 1

ˆˆ ˆ

ˆ ˆˆ

ˆ

i

i

it it i it it it it i

N T

it iti tN T

iti t

y u e e y u

e e

e

x β x β

*1

* 21 1

ˆ , 1

ˆ1

it it it

i i

z z z t

z z

Page 18: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Autocorrelation

– Estimate the transformed model

– Iterate until converges

* *' * * '

11 2

2

1 1

ˆˆ ˆ

ˆ ˆˆ

ˆ

i

i

it it i it it it it i

N T

it iti tN T

iti t

y u e e y u

e e

e

x β x β

ˆ

β

Page 19: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Autocorrelation• Notational Complexity with time lags in unbalanced panel data

(Unbalanced unequal space panel data)

i t zit zit-1 z*it

1 1 z11 . (1-2)1/2 z11

1 2 z12 z11 z12 -z11

1 3 . . .

1 4 z14 . (1-2)1/2 z14

1 5 z15 z14 z15 -z14

2 1 z21 . (1-2)1/2 z21

2 2 . . .

2 3 . . .

2 4 z24 . (1-2)1/2 z24

2 5 z25 z24 z25 -z24

3 1 . . .

3 2 . . .

3 3 z33 . (1-2)1/2 z33

3 4 . z33 .

3 5 . . .

i t zit

1 1 z11

1 2 z12

1 4 z14

1 5 z15

2 1 z21

2 4 z24

2 5 z25

3 3 z33

Page 20: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Autocorrelation

• Hypothesis Testing– Modified Durbin-Watson Test Statistic (Bhargava,

Franzini, Narendranathan, 1982)

– LBI Test Statistic (Baltagi-Wu, 1999)• For unbalanced unequal spaced panel data

211 11 2

1 1

ˆ ˆ

ˆ

i

i

N T

it iti tN T

iti t

e ed

e

Page 21: Econometric Analysis of Panel Data Hypothesis Testing – Specification Tests Fixed Effects vs. Random Effects – Heteroscedasticity – Autocorrelation Serial

Example: Investment Demand

• Grunfeld and Griliches [1960]

– i = 10 firms: GM, CH, GE, WE, US, AF, DM, GY, UN, IBM; t = 20 years: 1935-1954

– Iit = Gross investment

– Fit = Market value

– Cit = Value of the stock of plant and equipment

21 ~ (0, )

it i it it it

it it it e

I F C

e iid