Академический Документы
Профессиональный Документы
Культура Документы
CHAPTER 16:
PANEL DATA REGRESSION MODELS
182
Basic Econometrics, Gujarati and Porter
var( wit ) = σ 2 = σ ε2 + σ ν2 + σ u2
that is, wit is homoscedastic. The coefficient of correlation between
wit and w jt ( i ≠ j ), that is, between the errors of two different cross-
sectional units at a given point of time is:
cov( wit , w jt ) σ ν2
= 2 2 2
;(i ≠ j )
[var( wit ) var( w jt ) σ ε + σ ν + σ u
And the coefficient of correlation between wit and w jt (t ≠ s ) , that is,
between the errors of a given cross-sectional unit at two different
times is,
cov( wit , wis ) σ ε2
= 2 2 2
;(t ≠ s )
var( wit ) var( wis ) σ ε + σ ν + σ u
16.9 (a) On the whole, the results make economic sense. For example,
the log of the earnings is lower this year if one was unemployed in
the previous year; it is also lower if your health in the previous year
was poor.
Empirical Exercises
183
Basic Econometrics, Gujarati and Porter
Keeping in mind that we cannot compare these results to those in Table 16.2
directly (why?), we do see that this log-linear model does a good job of explaining
the data, especially with an R2 of 98.83%. This model, however, gives the elasticity
of each of the variables, so it may be more useful in some contexts.
184
Basic Econometrics, Gujarati and Porter
(b) & (c) In tabular form, the results are as follows (t ratios in
parentheses):
185
Basic Econometrics, Gujarati and Porter
(d) The results here and in (e) below are obtained from Stata.
F(1,77) = 75.88
corr(u_i, Xb) = -0.4482 Prob > F = 0.0000
------------------------------------------------------------------------------
comp | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
UN | -12.86206 1.476508 -8.71 0.000 -15.80216 -9.921954
_cons | 193.8684 11.39302 17.02 0.000 171.182 216.5548
-------------+----------------------------------------------------------------
sigma_u | 7.2056457
sigma_e | 24.770613
rho | .07801799 (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(2, 77) = 1.83 Prob > F = 0.1680
------------------------------------------------------------------------------
comp | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
UN | -11.603 1.327746 -8.74 0.000 -14.20534 -9.000671
_cons | 184.441 10.32332 17.87 0.000 164.2077 204.6743
-------------+----------------------------------------------------------------
sigma_u | 0
sigma_e | 24.770613
rho | 0 (fraction of variance due to u_i)
186
Basic Econometrics, Gujarati and Porter
------------------------------------------------------------------------------
(f) Since the results from the two models are similar, one can
choose either model.
------------------------------------------------------------------------------
ln_Y | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
ln_X2 | .8899616 .0358058 24.86 0.000 .8195313 .9603919
ln_X3 | -.8917979 .0303147 -29.42 0.000 -.9514272 -.8321685
ln_X4 | -.7633727 .0186083 -41.02 0.000 -.7999754 -.7267701
_cons | 2.391326 .1169343 20.45 0.000 2.161315 2.621336
------------------------------------------------------------------------------
F(3,321) = 560.09
corr(u_i, Xb) = -0.2468 Prob > F = 0.0000
------------------------------------------------------------------------------
ln_Y | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
ln_X2 | .6622498 .073386 9.02 0.000 .5178715 .8066282
ln_X3 | -.3217025 .0440992 -7.29 0.000 -.4084626 -.2349424
ln_X4 | -.6404829 .0296788 -21.58 0.000 -.6988726 -.5820933
_cons | 2.40267 .2253094 10.66 0.000 1.959401 2.84594
-------------+----------------------------------------------------------------
sigma_u | .34841289
187
Basic Econometrics, Gujarati and Porter
sigma_e | .09233034
rho | .93438173 (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(17, 321) = 83.96 Prob > F = 0.0000
------------------------------------------------------------------------------
ln_Y | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
ln_X2 | .5549858 .0591282 9.39 0.000 .4390967 .6708749
ln_X3 | -.4203893 .0399781 -10.52 0.000 -.498745 -.3420336
ln_X4 | -.6068402 .025515 -23.78 0.000 -.6568487 -.5568316
_cons | 1.996699 .184326 10.83 0.000 1.635427 2.357971
-------------+----------------------------------------------------------------
sigma_u | .19554468
sigma_e | .09233034
rho | .81769856 (fraction of variance due to u_i)
------------------------------------------------------------------------------
(d) Again it seems that both the fixed and random effects models have similar results.
The reader can apply the Hausman test to validate this and choose the most appropriate
one.
16.15 The following are the Stata results for a random effects model:
188
Basic Econometrics, Gujarati and Porter
------------------------------------------------------------------------------
aidcap | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
y2 | -20.97589 4.034306 -5.20 0.000 -28.88299 -13.0688
y3 | -17.74298 4.233206 -4.19 0.000 -26.03991 -9.446051
rgdpcap | -.0068197 .0035383 -1.93 0.054 -.0137546 .0001152
rgdcap_2 | 2.76e-07 1.50e-07 1.84 0.066 -1.83e-08 5.69e-07
infmort | -.6473419 .4506886 -1.44 0.151 -1.530675 .2359915
infmort_2 | .0020571 .0026843 0.77 0.443 -.003204 .0073182
civilpolrts | -4.073314 1.170265 -3.48 0.001 -6.366991 -1.779638
goveff | -12.89453 6.51862 -1.98 0.048 -25.67079 -.1182682
popmil | -.4476405 .1236893 -3.62 0.000 -.6900671 -.205214
popmil_2 | .0003487 .000106 3.29 0.001 .000141 .0005564
_cons | 143.9601 24.67574 5.83 0.000 95.59657 192.3237
-------------+----------------------------------------------------------------
sigma_u | 45.776897
sigma_e | 31.747432
rho | .67522983 (fraction of variance due to u_i)
------------------------------------------------------------------------------
With respect to the fixed effects results presented in the chapter, the outputs above are
similar; the R2 values haven’t changed much (although we cannot compare them
directly… why?), there are only 3 instances where the slope of ln_LF is not statistically
significant, and only for Airline 6 did the sign on ln_LF switch (note that it still isn’t
statistically significant, though). Otherwise, they are similar. The same is generally true
for the random effects model comparison. It would not be as good of an idea to create 15
separate cross-section models here because we would lose too many degrees of freedom
(note that there would only be 6 observations per regression and 4 parameters would be
estimated).
189