Discrete Choice Modeling: William Greene Stern School of Business New York University
Discrete Choice Modeling: William Greene Stern School of Business New York University
William Greene
Stern School of Business
New York University
Part 4
Panel Data Models
Benefits
Modeling heterogeneity
Rich specifications
Modeling dynamic effects in individual behavior
Costs
Household Income
Fixed Effects
---------------------------------------------------------------------Least Squares with Group Dummy Variables..........
Ordinary
least squares regression ............
LHS=HHNINC
Mean
=
.35208
Standard deviation
=
.17691
Number of observs.
=
27326
Model size
Parameters
=
7294
Degrees of freedom
=
20032
Residuals
Sum of squares
=
277.15841
Standard error of e =
.11763
Fit
R-squared
=
.67591
Adjusted R-squared
=
.55791
Model test
F[***, 20032] (prob) =
5.7(.0000)
--------+------------------------------------------------------------Variable| Coefficient
Standard Error b/St.Er. P[|Z|>z]
Mean of X
--------+------------------------------------------------------------EDUC|
.03664***
.00289
12.688
.0000
11.3206
--------+------------------------------------------------------------For the pooled model, R squared was .06883 and the estimated coefficient
On EDUC was .01996.
Random Effects
---------------------------------------------------------------------Random Effects Model: v(i,t)
= e(i,t) + u(i)
Estimates: Var[e]
=
.013836
Var[u]
=
.015308
Corr[v(i,t),v(i,s)] =
.525254
Lagrange Multiplier Test vs. Model (3) =*******
( 1 degrees of freedom, prob. value = .000000)
(High values of LM favor FEM/REM over CR model)
Baltagi-Li form of LM Statistic =
4534.78
Sum of Squares
796.363710
R-squared
.068775
--------+------------------------------------------------------------Variable| Coefficient
Standard Error b/St.Er. P[|Z|>z]
Mean of X
--------+------------------------------------------------------------EDUC|
.02051***
.00069
29.576
.0000
11.3206
Constant|
.11973***
.00808
14.820
.0000
--------+------------------------------------------------------------Note: ***, **, * = Significance at 1%, 5%, 10% level.
---------------------------------------------------------------------For the pooled model, the estimated coefficient on EDUC was .01996.
Linear Models
Fixed Effects
Random Effects
Inconsistent in FE case:
effects correlated with X
Use FGLS: No necessary
distributional assumption
Smaller number of parameters
Inconvenient to compute
Nonlinear Models
Fixed Effects
Random Effects
Inconsistent in FE case :
effects correlated with X
Use full ML: Distributional
assumption
Smaller number of parameters
Always inconvenient to
compute
it / 1+u2 F(x it )
Prob[yit 1| xit ] F x
This is the "population averaged model."
Ignoring Heterogeneity
Ignoring heterogeneity, we estimate not .
Partial effects are f(xit) not f( xit)
is underestimated, but f( xit) is overestimated.
Which way does it go? Maybe ignoring u is ok?
Not if we want to compute probabilities or do
statistical inference about . Estimated standard
errors will be too small.
Partial Effects
---------------------------------------------------------------------Partial derivatives of E[y] = F[*] with
respect to the vector of characteristics
They are computed at the means of the Xs
Observations used for means are All Obs.
--------+------------------------------------------------------------Variable| Coefficient
Standard Error b/St.Er. P[|Z|>z] Elasticity
--------+------------------------------------------------------------|Pooled
AGE|
.00578***
.00027
21.720
.0000
.39801
EDUC|
-.01053***
.00131
-8.024
.0000
-.18870
HHNINC|
-.03847**
.01713
-2.246
.0247
-.02144
--------+------------------------------------------------------------|Based on the panel data estimator
AGE|
.00620***
.00034
18.375
.0000
.42181
EDUC|
-.00918***
.00174
-5.282
.0000
-.16256
HHNINC|
.00183
.01829
.100
.9202
.00101
--------+-------------------------------------------------------------
Effect of Clustering
Yit must be correlated with Yis across periods
Pooled estimator ignores correlation
Broadly, yit = E[yit|xit] + wit,
c 1
i 1 gic
nc
g
H
i 1 ic
nc
Binary outcome
Correlation across time
Heterogeneity across firms
Application 2: Innovation
F
(
y
v
)
it
,
it
u
i
t 1
Ti
) f vi dvi
F
(
y
,
v
it
it
u
i
t 1
Ti
logL i1 log
N
Ti
t 1
= i1 log g(v)
N
-v2
exp
dvi
2
2
1
N
2
=
l
og
g(
2w)
exp
-w
dwi
i1
log
whg( 2zh )
i1
h1
H
h1
wh
F(y
,
2
z
)
it
it
u
h
t1
Ti
Simulation
v dv
F(y
,
v
)
it
it
u
i
i
i
t1
-vi2
N
1
= i1 log g(vi )
exp
dvi
2
2
logL i1 log
N
Ti
1 R
log r1
Ti
t1
Ti
t 1
Unconditional Estimation
Conditional Estimation
Principle: f(yi1,yi2, | some statistic) is free of
the fixed effects for some models.
Maximize the conditional log likelihood, given
the statistic.
Can estimate without having to estimate i.
Ti
Ti
t 1
t 1
Ti
Ti
exp
d
x
exp
All different ways that
t dit Si
it it
Si
t 1
d
x
it it
t 1
Ti
ei xit
Prob(yit 1| xit )
.
1 ei xit
Prob Yi1
Prob Yi1
Prob Yi1
Prob Yi1
y
,
data
it
t 1
Ti
y
x
it it
t 1
.
Ti
exp
d
x
tdit Si
it it
t1
exp
exp(x
i1 )
1, Yi2 0 yit 1, data
i1 ) exp(
exp( x
x i2
)
t 1
exp(x
i2 )
0, Yi2 1 yit 1, data
i1 ) exp(
exp( x
x i2
)
t 1
Ti
exp( i xit )
t 1 ( yit Pit ) 0, Pit 1 exp( x )
i
it
Ti
cit
1 Ti ei exit
1 Ti icit
1 Ti
yi t1
t 1
t1
i x
it
Ti
T
1
c
T
i cit
1 e e
i
i it
i
Advantages
Disadvantages
Only the case of T=2 for the binary logit model is known
with certainty. All other cases are extrapolations of this
result or speculative.
Heckman:
Advantages
Disadvantage
Mundlak Correction
Dynamic Models
yit 1[xit yi,t1 it ui > 0]
Two similar 'effects'
Unobserved heterogeneity
State dependence = state 'persistence'
Pr(yit 1| yi,t1 ,..., yi0 , xit ,u] F[xit yi,t1 ui ]
How to estimate , , marginal effects, F(.), etc?
(1) Deal with the latent common effect
(2) Handle the lagged effects:
This encounters the initial conditions problem.
t1
t1
Basic Model