describing continuous time event occurrence data alda, chapter thirteen

15
John B. Willett & Judith D. Singer Harvard Graduate School of Education Describing continuous time event occurrence data ALDA, Chapter Thirteen “Time has no divisions to mark its passing” Thomas Mann

Upload: hollis

Post on 09-Feb-2016

28 views

Category:

Documents


0 download

DESCRIPTION

Describing continuous time event occurrence data ALDA, Chapter Thirteen. “Time has no divisions to mark its passing” Thomas Mann. John B. Willett & Judith D. Singer Harvard Graduate School of Education. Chapter 13: Describing continuous-time event occurrence data. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Describing continuous time event occurrence data ALDA, Chapter Thirteen

John B. Willett & Judith D. SingerHarvard Graduate School of

Education

Describing continuous time event occurrence data

ALDA, Chapter Thirteen

“Time has no divisions to mark its passing”Thomas Mann

Page 2: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Chapter 13: Describing continuous-time event occurrence data

Salient features of continuous-time event data (§13.1)—what does it mean to collect data in “continuous time” and how is this different from discrete-time?Redefining the survivor and hazard functions and strategies for estimation (§13.1.2 and 13.1.3)—it’s not as straightforward as you might think (or like)—especially for the hazard functionThe cumulative hazard function (§13.4)——a relative of the hazard function that is easy to estimate in continuous time and whose behavior gives us insight into hazardDeveloping your intuition about survivor, cumulative hazard and kernel-smoothed hazard functions (§13.5)—it takes practice, but knowing what you now know about discrete-time survival analysis you can learn to interpret the behavior of the sample estimates of these continuous time functions—essential knowledge for model building.

Page 3: Describing continuous time event occurrence data ALDA, Chapter Thirteen

What happens when we record event occurrence in continuous time?

There exists an infinite number of these instants. Any division of continuous time—weeks, days,

hours, etc—can always be made finer (in contrast to the finite—and usually small—number of values for

TIME in discrete-time)

The probability of observing any particular event time is infinitesimally small (it approaches 0 as time’s divisions get finer).

• This has serious implications for the definition of hazard, the lynchpin of survival analysis.

• Continuous-time hazard must be defined differently, and it is difficult to estimate and display it in data analysis

The probability of ties—two or more individuals sharing an event time—

is therefore infinitesimally small• Continuous-time survival methods assume no

ties. When they exist—and they inevitably do—they can cause difficulties.

• Why are ties inevitable in continuous time? Continuous-time data are really not continuous. Because they are collected to the nearest unit (year, month, week, etc), they are really “rounded.” The theory of continuous-time survival analysis, however, is developed assuming that the probability of ties 0.

We know the precise instant when events occur—e.g., Jane took her first drink at 6:19 after release from an alcohol

treatment program

(ALDA, Section 13.1.1, pp 469-471)

Page 4: Describing continuous time event occurrence data ALDA, Chapter Thirteen

What do continuous time data look like?

Data source: Diekmann & colleagues (1996), Journal of Social PsychologySample: 57 motorists in Munich Germany (purposefully) blocked at a green light by a Volkswagen JettaResearch design:Tracked from light change until horn honk

n=43 (75.4%) honked their horns before the light turned red; the rest are censoredEvent time recorded to the nearest 100th of a second!

(ALDA, Section 13.1.1, pp 471-472)

Only tie A few patient people

Notation for continuous-time event data

T is a continuous random variable representing event timeTi indicates the event time for individual iCENSORi indicates whether Ti is censoredtj clocks the infinite number of instants when the event could occur

Page 5: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Defining continuous time survivor and hazard functions

(ALDA, Section 13.1.2 & 13.1.2, pp 472-475)

The survivor function The survival probability for individual i

at time tj is the probability that his or her event time, Ti will exceed tj

(Note: this definition is essentially identical to that in discrete time)

jiij tTtS Pr)(

The hazard functionHazard assesses the risk—at a particular

moment—that an individual who has not yet done so will experience the event

Can’t be defined as a (conditional) probability because that probability 0

Divide time into an infinite number of vanishingly small intervals:

[tj , tj + t)

ttTtttinterval the in is TPr

0 t as limit)h(t jijjiij

|),[

Compute the probability that Ti falls in this interval as t 0 and divide by the interval width to derive an estimate of

hazard per unit time:

Tips for interpreting continuous-time hazard

• It is not a probability—it is a rate per unit of time

• You must be explicit about the unit of time—60 mph, 60K/yr

• Unlike probabilities, rates can exceed 1 (has implications for modeling—instead of modeling logit hazard we model log hazard)

• Intuition using repeatable events—estimate the number of events in a finite period (e.g., if monthly hazard =.10, annual hazard = 1.2)

includes tj excludes tj + t

Page 6: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Grouped methods for estimating the survivor and hazard functions

(ALDA, Section 13.2, pp 475-483)

Discrete-time methodGroup the event times into intervals and use discrete-time methods

Initial grace period

Risk of honking increases and

peaks

eventual decline

Median=3.92 secs

Actuarial/Life-table method• Adapt the estimates by assuming

that times are distributed randomly throughout the interval

• Plot as step function to reinforce the association with the entire interval

But why categorize happy healthy

continuous data?

Page 7: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Kaplan-Meier estimates of the survivor function

(ALDA, Section 13.3, p 483-491)

Estimated median lifetime=3.5769 seconds

Kaplan-Meier estimate of the survivor function

Note how smooth these estimates are

)(ˆ1)(ˆ1)(ˆ1)(ˆ21 jj tptptptS Conditional probability of event

occurrence

Note how erratic they are especially as risk set declines in later intervals

j

jj riskatn

eventsntp )(ˆ

Key idea: Use observed event times to construct intervals so that each contains just one observed event time; then use standard discrete-time methods.

• Since the first 3 observed event times are 1.41, 1.51 and 1.67, construct two intervals: [1.41, 1.51), [1.51, 1.67)

• By convention, construct an initial interval [0, 1.41)• Continue through all the observed event times

Page 8: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Kaplan-Meier estimates: Displays, comparisons, pros and cons

Knowing the value of the hazard function, is there any way to discern its shape over time?

Pros of KM approach• Uses all observed information on event times

without categorization

• If event occurrence is recorded using a truly continuous metric, the estimated survivor function appears almost ‘continuous.’

• Estimates are as refined as the fine-ness of data collection—certainly finer than DT and Actuarial/Life Table approaches

Drawbacks of KM approach• When examining plots for subgroups, the

“drops” will occur in different places making visual comparison trickier

• No corresponding estimate of hazard. You can compute:

but the estimates are generally too erratic to be of much direct use (although we will end up using them for another purpose).

j

jKMjKM width

tpth

)(ˆ)(ˆ

(ALDA, Section 13.3, p 483-491)

5 10 15 20

Seconds after light turns green

00.00

0.25

0.50

0.75

1.00S(tj )

Kaplan Meier

Actuarial

Discrete-time

Page 9: Describing continuous time event occurrence data ALDA, Chapter Thirteen

The cumulative hazard function: A conceptual introduction

(ALDA, Section 13.4, pp 488-491)

Cumulative hazard function • Assesses the total amount of accumulated

risk individual i has faced from the beginning of time (t0) to the present (tj)

• By definition, begins at 0 and rises over time (never decreasing).

• Has no directly interpretable metric, and is not a probability

• Cumulation prevents it from directly assessing unique risk (hazard)

• But, examining its changing shape allows us to deduce this information

,)()( ijt and t betweenij th cumulationtHj0

From H(t) to h(t)

To deduce the shape of h(t), study how the rate of increase in H(t) changes

over time. Any change in its rate of increase reflects a corresponding change in h(t)

To develop an intuition, first move from h(t) to H(t).

Because h(t) is constant, H(t) increases linearly as the same fixed

amount of risk—the constant value of hazard—is added to the prior

cumulative level at each successive instant (making H(t) linear).

Next, move from H(t) to h(t) because this is what you need to do

in practice.

• Guesstimate the rate of increase in H(t) at different points in time

• Because the slopes are identical, the rate of change in H(t) is constant over time, indicating that h(t) is constant over time

Page 10: Describing continuous time event occurrence data ALDA, Chapter Thirteen

From cumulative hazard to hazard: Developing your intuition

(ALDA, Section 13.4.1, pp 488-491)

h(t) must be increasing(the linear increase in h(t) is not

guaranteed, but a steady increase is)

h(t) must be initially low, then increase and then decrease

When rate of increase in H(t) reverses itself, h(t) has hit a peak (or trough)

h(t) must be decreasing Over time, a smaller amt of risk is added to H(t) suggesting the asymptote in h(t)

H(t) increases more rapidly over

time—it accelerates

H(t) increases more slowly over time

H(t) increases slowly, then rapidly and then

slowly

Page 11: Describing continuous time event occurrence data ALDA, Chapter Thirteen

The cumulative hazard function in practice: Estimation methods and data analytic practice

(ALDA, Section 13.4.2, p 491-494)

Nelson-Aalen method• Goal: To cumulate the “hazard” that

exists at all possible times between t0 and tj

• Idea: Use the (erratic) Kaplan-Meier type hazard estimates to compute “total hazard during each interval”

• Sum these up

jjKM widthth )(ˆ

jjKM widthth )(ˆ

Conclusions:Hazard is initially low,

increases until around the 5th second, and then

decreases again

Can we systematically quantify these changing rates of increase

so as to describe hazard?

0 5 10 15 20

Seconds after light turns green

0.00

0.50

1.00

1.50

2.00

2.50

3.00

3.50H(tj )

Nelson-Aalen

Examining the changing slopes in to learn

about hazard)(ˆ tH

-ln S(t) method• It requires calculus to derive, but it can be

established that: H(tj)=- -ln S(tj).• So…estimate H(t) by taking the negative

log of the KM estimated survivor function• As one would hope, very similar to NA

estimates, especially at early times when both sets of estimates are most stable.

Negative log survivor

slowest rate of increase

faster rate of increase

slowing down

Page 12: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Kernel-smoothed estimates of the hazard function

(ALDA, Section 13.5, p 494-497)

Idea: Use the changing rates of change in cumulative hazard to estimate (admittedly erratic) pseudo-hazard estimates & average together to stabilize

• h(tj)=rate of change in {-ln S(tj)}

• So….successive differences in sample cumulative hazard yield “pseudo-slope” estimates of hazard

• Choose a temporal window—a “bandwidth”—and aggregate together these estimates

• Yields approximate hazard values based on estimates nearby

Bandwidth=1

Bandwidth=3

Bandwidth=2

Finally, … a clear window on hazard (especially with wider bandwidths)

But, as the bandwidth widens:

• The link between the smoothed function and hazard diminishes because it is estimating hazard’s average within a broader timeframe

• The estimates can only be computed at intermediate time frames (a big problem if hazard is highest initially)

Page 13: Describing continuous time event occurrence data ALDA, Chapter Thirteen

We’ll illustrate ideas using four data sets, chosen because they have very

different distributions of event occurrence over time

Developing your data analytic intuition for continuous time event data: Overview

(ALDA, Section 13.6, pp 497-502)

To describe the distribution of continuous-time event data, plot:• The survivor function (Kaplan-Meier estimates)—usually begin here

because we can interpret its level and it can be estimated at all times• The cumulative hazard function (either –LS or Nelson-Aalen estimates)• If possible, kernel smoothed estimates of the hazard function

A: Time to first heavy drinking day

89 recently treated alcoholics

(Cooney et al, 1991)

B: Years on bench107 US Supreme Ct justices

(Zorn & Van Winkle, 2000)

C: Age at first depressive episode

1,974 adults ages 18 - 94(Sorenson, Rutter, Aneshensel,

1991)

D: Employment duration2,074 health care workers

(Singer et al, 1998)

Page 14: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Developing your data analytic intuition: Alcohol relapse & judge tenure

(ALDA, Section 13.6, pp 497-502)

Weeks to first heavy drinking day

• Relapse very common: ML=22 weeks, final S(t)=.2149 (at 100 wks)

• Cumulative hazard rises sharply initially and then decelerates. Suggests great initial risk of relapse that declines over time

• Kernel-smoothed hazard shows steady decline over time (although can’t comment on first 12 weeks because of bandwidth)

Years on the Supreme Court

• Event occurrence very common: All eventually retire or die, ML=16 years

• Cumulative hazard rises slowly initially and then accelerates ~10yrs. Suggests low immediate risk followed by steady increase in risk

• Kernel-smoothed hazard shows increasing risk over time (although can’t comment on first 5 years because of bandwidth)

0 25 50 75 100Weeks since discharge

0.00

0.50

1.00S(t)

0 25 50 75 100Weeks since discharge

0.00

0.50

1.00

1.50

H(t)

0 25 50 75 100Weeks since discharge

0.00

0.01

0.02

0.03

h(t)

Bandwidth=12

0 5 10 15 20 25 30 35Years on court

0.00

0.50

1.00S(t)

0 5 10 15 20 25 30 35

Years on court

0.00

1.00

2.00

3.00

4.00

5.00H(t)

0 5 10 15 20 25 30 35Years on court

0.00

0.02

0.04

0.06

0.08

0.10

0.12

0.14h(t)

Bandwidth=5

Page 15: Describing continuous time event occurrence data ALDA, Chapter Thirteen

Developing your data analytic intuition: Depression onset & employment duration

(ALDA, Section 13.6, pp 497-502)

Age at first depressive episode

•Onset very rare: no ML, S(t)=.92 at age 54

•Cumulative hazard rises slowly, then sharply, then slowly. Suggests that hazard is first low, then rises to a peak, and then declines

•Kernel-smoothed hazard shows this inverted-U shape with a peak between 15 and 30

Tenure at Community Health Centers

•Over 3 years, many people stay: no ML, S(t)=.57 at 139 weeks

•Cumulative hazard seems almost linear, with a few ‘bumps’. Suggests relatively steady risk

•Kernel-smoothed hazard reveals pronounced peaks which correspond to anniversaries—12mos, 18mos, and 24 mos after hire.

0 25 50 75 100Age (in years)

0.00

0.50

1.00S(t)

0 25 50 75 100Age (in years)

0.00

0.02

0.04

0.06

0.08

0.10H(t)

0 25 50 75 100Age (in years)

0.00

1.00

2.00

3.00h(t) (1E-3)

Bandwidth=7

0 26 52 78 104 130Weeks since hired

0.00

0.50

1.00S(t)

0 26 52 78 104 130Weeks since hired

0.00

0.10

0.20

0.30

0.40

0.50

0.60H(t)

0 26 52 78 104 130Weeks since hired

0.00

0.00

0.00

0.01

h(t)

Bandwidth=12