random effects - josé fajardo · random effects prf. josé fajardo fgv/ebape. 15/08/2014 2. ......

13
15/08/2014 1 Random Effects Prf. José Fajardo FGV/EBAPE

Upload: dangtram

Post on 30-Aug-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

15/08/2014

1

Random Effects

Prf. José Fajardo

FGV/EBAPE

15/08/2014

2

15/08/2014

3

15/08/2014

4

Feasible GLS

15/08/2014

5

Marriagepremium2.do

Interpreting the RE Output

Beatles.do

15/08/2014

6

FE or RE Models?

'0

'1

: ( , ) 0 ( )

: ( , ) 0 ( )i it

i it

H Cov u random effects

H Cov u fixed effects

=

x

x

Estimator Random Effects

E(ui|Xi) = 0

Fixed Effects

E(ui|Xi) ≠0

GLS or RE-OLS

(Random Effects)

Consistent and

Efficient

Inconsistent

LSDV or FE-OLS

(Fixed Effects)

Consistent

Inefficient

Consistent

Possibly Efficient

FE or RE Models?

15/08/2014

7

FE or RE Models?

Bias vs Efficiency

15/08/2014

8

Marriage example

Marriagepremium2.do

15/08/2014

9

CR 1988 example

xtreg lwage `x1' `x2', fe

estimates store FE

predict ufe, u

regress ufe `x2', robust

* Random effects: Mundlak approach

xtreg lwage `x1' `x2', re

estimates store RE

predict ure, u

* model comparisons

estimates table FE RE, b se t stats(r2_o rho)

hausman FE RE

Exercicio2.do

15/08/2014

10

Country example

Other Diagnosis Tests

Testing for FE

15/08/2014

11

Testing for RE

Testing for Cross-sectional Dependence

Testing for Cross-sectional Dependence

15/08/2014

12

Testing for Heteroskedasticity

Testing for Serial Correlation

Testing for Unit Root

15/08/2014

13

Different Research Questions?