Panel Data Analysis
Panel Data Analysis
α ¿ = individual heterogeneity
Note that α ¿ + μ¿ =v ¿
We assume same intercept and constant slope for all variables, therefore all have same
constant, i.e. β
However, there is unobserved heterogeneity that influences IDV’s affect on DV, such as
culture in countries, institutional structures, effectiveness of policies etc. These variables
are ‘time invariant’
If error term and IDV are correlated = endogeneity. Regression assumptions say we
shouldn’t have this problem in our model
Endogeneity leads to biased estimators
To tackle this issue, we can use
2. Fixed Effect Model using Least Square Dummy Variable (LSDV) technique
We create dummy variables for each section in the panel data so that the α term is
excluded from the error term. (we have 20 countries, therefore 20 dummy variables)
Issues:
(a) Less degrees of freedom due to high levels of dummies
(b) Multicollinearity due to dummies
(c) Cannot be used with time invariant regressors(IDV) such as gender, race, ethnicity
etc.
>
OOSC Coefficient Std. err.
> t
> P>|t|
> [95% con
> f. interval]
>
GEE -.9115177 .7747187
> -1.18
> 0.245
> -2.465407
> .6423713
log_PTR 5.831229 2.876863
> 2.03
> 0.048
> .0609717
> 11.60149
log_GDPPC 1.801764 2.502352
> 0.72
> 0.475
> -3.217319
> 6.820846
LRF -.3651403 .2073577
> -1.76
> 0.084
> -.7810471
> .0507665
LRM .0495209 .2973327
> 0.17
> 0.868
> -.5468529
> .6458947
SOI 4.357614 40.39635
> 0.11
> 0.915
> -76.66719
> 85.38242
_cons -1.447533 27.59109
> -0.05
> 0.958
> -56.78825
> 53.89318
>
. hettest
chi2(1) = 24.69
Prob > chi2 = 0.0000
chi2(6) = 39.90
Prob > chi2 = 0.0000
.
2. Fixed Effects Model
F(6,34) = 1.66
corr(u_i, Xb) = -0.3250 Prob > F = 0.1601
sigma_u 10.625388
sigma_e 2.3240226
rho .95434418 (fraction of variance due to u_i)
F test that all u_i=0: F(19, 34) = 27.97 Prob > F = 0.0000
sigma_u 8.0202084
sigma_e 2.3240226
rho .92253718 (fraction of variance due to u_i)
3. Hausman Test
Results state that fixed effect model should be used because p value < 0.05
. hausman fixed random
Coefficients
(b) (B) (b-B) sqrt(diag(V_b-V_B))
fixed random Difference Std. err.
chi2(6) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= 550.82
Prob > chi2 = 0.0000
(V_b-V_B is not positive definite)
Results state that random effects model is more appropriate because p-value > 0.05
. hausman fixed random, sigmamore
Coefficients
(b) (B) (b-B) sqrt(diag(V_b-V_B))
fixed random Difference Std. err.
chi2(6) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= 10.14
Prob > chi2 = 0.1190