Economics 508 Duration Models
Economics 508 Duration Models
Economics 508 Duration Models
Economics 508
Lecture 22
Duration Models
1
Digression on the Mills’ Ratio & Hazard Rates.
to get a death rate (deaths per unit time) between x and x + t compute
which is called the hazard rate. The reciprocal of the hazard rate is some-
times called the Mills ratio.
A common problem in data of this sort is that we observe T for only
some observations, while for others we observe only that T is greater that
some censoring time tc , e.g., in a clinical trial, individuals may be still alive
at the end of the experimental period. So we see
Ti if Ti < tc
Yi =
tc if Ti ≥ tc
so this is somewhat like the tobit model of the last lecture. Of course we
now need to specify the parametric model for f and S.
2
1. Exponential – this is simplest
λ(t) ≡ λ > 0 ⇒ S(t) = e−λt
f (t) = λe−λt
E(T ) = λ−1
V (T ) = λ−2
median = − log(1/2)/λ ∼
= .69/λ
3
as an estimate of pi we could use
di # quit in period i
p̂i = 1 − = 1−
ni # left in period i
The Kaplan Meier estimator of S(t) is like the previous method except
that we replace the fixed intervals with random intervals determined by the
observations themselves. As above, we observe pairs: (Y1 , δ1 ), . . . , (Yn , δn )
where Yi is observed duration for ith subject and
1 uncensored
δi =
0 censored
Let (Y(i) , δ(i) ) denote the ordered observation (ordered on Y ’s!). Then set
as above
Y Y 1
δi Y 1
δi Y n − i δi
Ŝ(t) = p̂i = 1− = 1− =
ni n−i+1 n−i−1
y(i) ≤t y(i) ≤t y(i) ≤t y(i) ≤t
4
1.0
0.8
0.6
0.4
0.2
0.0
• • • • •
0 20 40 60 80
Figure 1: A Simple Kaplan Meier Plot for 5 Observations: The figure illus-
trates a very simple version of the Kaplan Meier estimator of the survival
function for 5 observations, one of which is censored and the others of which
are uncensored. The 5 observed times are represented on the horizontal
axis as plotted points with vertical coordinate zero. A useful exercise is to
compute the vertical ordinates of Ŝ(t) given in the figure. Note that there
is no drop in the estimated function at y2 since this observation is censored.
The dotted lines denote a confidence band for S(t) which, since there are so
few observations is essentially uninformative.
5
(iii) It is a generalized MLE à la Kiefer-Wolfowitz.
(iv) Without
P censoring it is the empirical df , i.e. Ŝ(t) = 1 − F̂ (t) where
F̂ (t) = n−1 I(Ti < t).
This is particularly good for one-and two-sample problems.
The estimates p̂i ’s are the conditional probabilities, while one needs to
compute the associated conditional survival probabilities to find the Survival
Function Estimate, and the product accomplishes this.
The Kaplan Meier estimator is particularly good in situations in which
we have a small number of groups and we would like to ask: do they have
similar survival distributions. An example of this sort of question is ad-
dressed in the next figure. Using data from Meyer (1990) we consider the
survival distributions estimated by the Kaplan-Meier technique for individ-
uals who have more than $100 per week in unemployment benefits versus
those with less than $100 per week in benefits.
As the figure indicates, those with higher benefits appear to stay unem-
ployed longer. The median unemployment spell for the high benefits group
is roughly 2 weeks longer than for the low benefits group. Note, however,
that the difference is unclear in the right tail of the distribution; the higher
benefit group appears to have a somewhat lower probability of a spell greater
than 35 weeks. This plot was produced ty the splus command,
plot (surv.fit(dur,cens,strata=exp(ben) > 100, type=‘kaplan-meier’))
where dur is the observed durations, cens is the censoring indicator, and
ben is the log of weekly benefits.
The difficulty of this approach in most econometric applications is that
we can’t usually rely on a simple categorization of the sample observations
into a small number of groups, we have covariates which we would like to
use in a way which is close to the usual linear regression model fashion. This
leads to an attempt to make some compromise between the nonparametric
and parametric approaches.
6
1.0
0.8
low
high
0.6
0.4
0.2
0.0
0 10 20 30 40
Figure 2: Two Kaplan Meier Survival Curves for the length of unemploy-
ment spells: The figure plots Kaplan-Meier estimates of the duration of
unemployment function for two groups of individuals. One is a high UI-
benefits group (those with weekly benefits more than 100 dollars, the other
with weekly UI benefits less than 100. The data is taken from Meyer(1990).
7
for, or some other unit of economic analysis. Recall,
f (t|x)
λ(t|x) =
1 − F (t|x)
The crucial assumption of the Cox model is,
Note that the form h(x) = exβ is far less essential than multiplicative sep-
arability of the function in x and t. We now introduce a rather high-brow
definition which is useful in interpretating the essential role of the Cox as-
sumption.
Estimation (Sketchy)
Let ℜ(i) denote the set of individuals at risk at time y(i) − ε, for each
uncensored time, y(i)
X
P [a death in [y(i) , y(i) + ∆y)|ℜ(i) ] ∼
= exj β λ0 (y(i) ) ∆y
j∈R(i)
| {z }
hazard
so
ex(i) β
P { death of (i) at time y(i) | a death at time y(i) } = P x(i) β
.
j∈ℜi e
8
Note that the λ0 effect cancels in numerator and denominator. and this
gives the partial likelihood
" #
Y ex(i) β
L(β) = P x(j) β
i j∈ℜ(i) e
in the Cox Model. Breslow assumes à la Cox that λ0 (t) is constant between
uncensored observations,
1
λ̂0 (t) = P
(yu(i) − yu(i−1) ) j∈ℜu(i) eβ̂xj
for t ∈ (yu(i−1) , yu(i) ) and u(i) index of ith censored observations. Then,
!
Y δ(i)
Ŝ0 (t) = 1− P
j∈ℜ(i) eβxj
{i:y(i) <t}
Note here
Ŝ0 (t) 6= e−Λ0 (t)
9
P
But it has the virtue that we get Kaplan Meier when β = 0! Since eβxj
in this case is just the number of observations in the risk set.
Tsiatis uses instead,
Ŝ0 (t) = e−Λ0 (t)
X δ(i)
Λ0 (t) = P
j∈ℜ(i) eβ̂xj
This doesn’t simplify like the Breslow estimator. The relationship between
Tsiatis and Breslow estimates is seen simply by noting that − log(1 − x) ≈ x
for small x.
Duration Models and Binary Response
This section is based mainly on Doksum and Gasko (1990, Intl Stat
Review). We can think of the usual binary response model as a survival
model in which we fix the time of survival and ask, what is the probability
of surviving up to time t. For example, in the problem set we can ask what
is the probability of not quitting up to time 6 months. By then varying t
we get a nice 1-1 correspondence between the two classes of models. We can
specify the general failure-time distribution,
F (t|x) = P (T < t|x)
and fixed t so we are simply modeling a survival probability, say S(t|x) = 1−
F (t|x) which depends on covariates. We will consider two leading examples
to illustrate this, the logit model, and the Cox proportional hazard model.
Logit
In the logit model we have,
logit(S(t|x)) = log(S(t|x)/(1 − S(t|x)) = x′ β
where F (z) = (1 + e−z )−1 the df of the logistic distribution. In survival
analysis this would correspond to the model
logit(S(t|x)) = x′ β + log Γ(t)
where Γ(t) is a baseline odds function which satisfies the restriction that
Γ(0) = 0, and Γ(∞) = ∞. For fixed t we can simply absorb Γ(t) into the
intercept of x′ β. This is the proportional-odds model. Let
Γ(t|x) = S(t|x)/(1 − S(t|x)) = Γ(t) exp{x′ β}
10
and by analogy with other logit type models we can characterize the model
as possessing the property that the ratio of the odds-on-survival at any time
t don’t depend upon t, i.e.
Now choosing some explicit functional form for Γ(t) for example log Γ(t) =
γ log(t), ie. Γ(t) = tγ , gives the survival model introduced by Bennett
(1983).
11
Proportional Hazard Model
One can, of course, model not S, as above, but some other aspect of S
which contains equivalent information, like the hazard function,
so
′
Λ(t|x) = Λ(t)ex β ,
which is equivalent to
this is sometimes called the complementary log − log model in the binary
response literature. So this would provide a binary response model which
would be consistent with the Cox proportional hazard specification of the
survival version of the model. In general, this strategy provides a useful
way to go back and forth between binary response and full-blown survival
models, but I will leave a full discussion of this to 478.
12
A third alternative, which also plays an important role in the analysis
of failure time data is the accelerated failure time (AFT) model, where we
have
log(T ) = x′ β + u
with the distribution of u unspecified, but typically assumed to be iid. A
special case of this model is the Cox model with Weibull baseline hazard,
but in general we have
′ ′
P (T > t) = P (eu > te−x β ) = 1 − F (te−x β )
and consider a family of quantile regression models. This allows the covari-
ates to act rather flexibly with respect to the shape of the survival distribu-
tion.
References
Kalbfleisch, J.D. and R.L. Prentice (1980). The Statistical Analysis of Fail-
ure Time Data, Wiley.
Koenker, R. and O. Geling, (2001) Reappraising Medfly Longevity, JASA
96, 458-468.
Koenker, R. and Y. Bilias (2001) Quantile regression for duration data:
A reappraisal of the Pennsylvania reemployment bonus experiments, Em-
pirical Economics, 26, 199-220.
Meyer, B. (1990). Unemployment insurance and unemployment spells, Econo-
metrica, 57, 757-782.
Miller, R.G. (1981). Survival Analysis, Wiley.
13
Lancaster, T. (1990). The Econometric Analysis of Transition Data, Cam-
bridge U. Press.
Cox, D.R. (1972). Regression models and life tables, JRSS(B), 34, 187-200.
14