mvna , an R-package for the Multivariate Nelson-Aalen Estimator in - - PowerPoint PPT Presentation

mvna an r package for the multivariate nelson aalen
SMART_READER_LITE
LIVE PREVIEW

mvna , an R-package for the Multivariate Nelson-Aalen Estimator in - - PowerPoint PPT Presentation

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary mvna , an R-package for the Multivariate Nelson-Aalen Estimator in Multistate Models A. Allignol 1 , 2 , J. Beyersmann 1 , 2 M.


slide-1
SLIDE 1

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

mvna, an R-package for the Multivariate Nelson-Aalen Estimator in Multistate Models

  • A. Allignol1,2,∗
  • J. Beyersmann1,2
  • M. Schumacher2

1Freiburg Center for Data Analysis and Modelling, Freiburg University 2Institute of Medical Biometry and Medical Informatics, University Medical Center Freiburg ∗arthur.allignol@fdm.uni-freiburg.de

DFG Forschergruppe FOR 534

Allignol et al. (FDM) mvna Package 1/27

slide-2
SLIDE 2

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Multistate Model Framework

◮ Time-inhomogeneous Markovian multistate model ◮ Possible right-censoring and left-truncation

◮ (Xt)t ∈ [0, +∞) a stochastic process with state space {0, . . . , K}, and

right-continuous sample paths

Allignol et al. (FDM) mvna Package 2/27

slide-3
SLIDE 3

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Multistate Model Framework

◮ Time-inhomogeneous Markovian multistate model ◮ Possible right-censoring and left-truncation

◮ (Xt)t ∈ [0, +∞) a stochastic process with state space {0, . . . , K}, and

right-continuous sample paths 1

Allignol et al. (FDM) mvna Package 2/27

slide-4
SLIDE 4

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Multistate Model Framework

◮ Time-inhomogeneous Markovian multistate model ◮ Possible right-censoring and left-truncation

◮ (Xt)t ∈ [0, +∞) a stochastic process with state space {0, . . . , K}, and

right-continuous sample paths 2 1

Allignol et al. (FDM) mvna Package 2/27

slide-5
SLIDE 5

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Multistate Model Framework

◮ Transition hazards:

αij(t)dt = P(Xt+dt = j | Xt = i)

Allignol et al. (FDM) mvna Package 3/27

slide-6
SLIDE 6

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Multistate Model Framework

◮ Transition hazards:

αij(t)dt = P(Xt+dt = j | Xt = i)

◮ Cumulative transition hazards:

Aij(t) = t αij(u)du

Allignol et al. (FDM) mvna Package 3/27

slide-7
SLIDE 7

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

The Nelson-Aalen Estimator

◮ Nelson-Aalen estimator of the cumulative transition hazards

ˆ Aij(t) =

  • tk≤t

∆Nij(tk) Yi(tk)

◮ Nij(t) number of transitions from state i to j by time t ◮ Yi(t) number of individuals in state i just before time t Allignol et al. (FDM) mvna Package 4/27

slide-8
SLIDE 8

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

The Nelson-Aalen Estimator

◮ Nelson-Aalen estimator of the cumulative transition hazards

ˆ Aij(t) =

  • tk≤t

∆Nij(tk) Yi(tk)

◮ Nij(t) number of transitions from state i to j by time t ◮ Yi(t) number of individuals in state i just before time t

◮ The Nelson–Aalen estimator is simply a sum over empirical

hazards/empirical conditional transition probabilities

Allignol et al. (FDM) mvna Package 4/27

slide-9
SLIDE 9

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Variance Estimation

◮ Aalen variance estimator

ˆ σ2

ij =

  • tk≤t

dNij(tk) Yi(tk)2

Allignol et al. (FDM) mvna Package 5/27

slide-10
SLIDE 10

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Variance Estimation

◮ Aalen variance estimator

ˆ σ2

ij =

  • tk≤t

dNij(tk) Yi(tk)2

◮ Greenwood variance estimator

ˇ σ2

ij =

  • tk≤t
  • Yi(tk) − ∆Nij(tk)

Yi(tk)

  • dNij(tk)

Yi(tk)2

  • Allignol et al. (FDM)

mvna Package 5/27

slide-11
SLIDE 11

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Rationale

◮ The Nelson-Aalen estimator is the fundamental nonparametric

estimator in event history analysis.

◮ No package available to compute it in multistate models

◮ Univariate software tempts people to use objects that are meaningless

in multistate framework, e.g., Kaplan-Meier of single hazard estimates

◮ Cumulative hazard estimates give useful insights e.g.,

◮ In competing risks analysis ◮ With time-dependent covariates Allignol et al. (FDM) mvna Package 6/27

slide-12
SLIDE 12

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Package Description

◮ mvna(data, state.numbers, tra, cens.name) ◮ xyplot.mvna(x, ...) ◮ plot.mvna(x, ...) ◮ print(x, ...) ◮ predict(object, times, ...)

Allignol et al. (FDM) mvna Package 7/27

slide-13
SLIDE 13

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Package Description

◮ mvna(data, state.numbers, tra, cens.name) ◮ xyplot.mvna(x, ...) ◮ plot.mvna(x, ...) ◮ print(x, ...) ◮ predict(object, times, ...) ◮ 2 data sets:

◮ Random samples from intensive care unit cohort data on hospital

infections, with a minimum length of stay of 2 days

◮ sir.adm: ◮ Effect of pneumonia status on admission on the hazard of discharge

and death, respectively

◮ sir.continuation: ◮ Effect of ventilation (time-dependent) on the hazard of end-of-stay, a

combined discharge/death endpoint

Allignol et al. (FDM) mvna Package 7/27

slide-14
SLIDE 14

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Competing Risks example 2 3

◗◗◗◗◗◗◗ ◗ s ✟✟✟✟✟✟✟ ✟ ✯

Discharge Death α02(t) α03(t)

Allignol et al. (FDM) mvna Package 8/27

slide-15
SLIDE 15

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

The Data Set

◮ 765 patients from medical and surgical ICUs ◮ 14 (2%) censored observations ◮ 97 (13%) patients with pneumonia on admission

◮ 21 (22%) died

◮ 668 (87%) patients free of pneumonia

◮ 56 (8%) died Allignol et al. (FDM) mvna Package 9/27

slide-16
SLIDE 16

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Nelson-Aalen Estimates

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

No pneumonia Pneumonia

Discharge

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

Death

Allignol et al. (FDM) mvna Package 10/27

slide-17
SLIDE 17

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Nelson-Aalen Estimates

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

No pneumonia Pneumonia

Discharge

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

Death

◮ More patients die after pneumonia on admission

Allignol et al. (FDM) mvna Package 11/27

slide-18
SLIDE 18

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Nelson-Aalen Estimates

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

No pneumonia Pneumonia

Discharge

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

Death

◮ More patients die after pneumonia on admission

◮ Pneumonia prolongs hospital stay, as the all-cause hazard is reduced. ◮ Patients with pneumonia stay longer in hospital,

exposed to an unchanged death hazard

Allignol et al. (FDM) mvna Package 11/27

slide-19
SLIDE 19

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Nelson-Aalen Estimates

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

No pneumonia Pneumonia

Discharge

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

Death

◮ More patients die after pneumonia on admission

◮ Pneumonia prolongs hospital stay, as the all-cause hazard is reduced. ◮ Patients with pneumonia stay longer in hospital,

exposed to an unchanged death hazard

⇒ Pneumonia increases mortality

Allignol et al. (FDM) mvna Package 11/27

slide-20
SLIDE 20

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

How This Package Supplements What Already Exists

Allignol et al. (FDM) mvna Package 12/27

slide-21
SLIDE 21

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Competing Risks

Cox Model for the Cause-Specific Hazards

◮ Pneumonia status as a baseline binary covariate

Allignol et al. (FDM) mvna Package 13/27

slide-22
SLIDE 22

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Competing Risks

Cox Model for the Cause-Specific Hazards

◮ Pneumonia status as a baseline binary covariate ◮ Results:

CSHR 95% CI Discharge 0.367 [0.258; 0.473] Death 0.906 [0.537; 1.53]

Allignol et al. (FDM) mvna Package 13/27

slide-23
SLIDE 23

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Nelson-Aalen Estimates

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

No pneumonia Pneumonia

Discharge

50 100 150 1 2 3 4 5 6 Days Nelson−Aalen estimates

Death

Allignol et al. (FDM) mvna Package 14/27

slide-24
SLIDE 24

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Cumulative Incidence Functions

◮ Proportion of patients failing due to one risk as time progresses

50 100 150 0.0 0.2 0.4 0.6 0.8 1.0

CIF of Discharge

Days Probability

No pneumonia in admission Pneumonia in admission

50 100 150 0.0 0.2 0.4 0.6 0.8 1.0

CIF of Death

Days Probability

No pneumonia in admission Pneumonia in admission Allignol et al. (FDM) mvna Package 15/27

slide-25
SLIDE 25

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Note on the Variance Estimators

◮ Variance estimation is a more concerning problem with multistates

Allignol et al. (FDM) mvna Package 16/27

slide-26
SLIDE 26

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Note on the Variance Estimators

◮ Variance estimation is a more concerning problem with multistates ◮ For standard survival data, Klein (1991) found that:

◮ The Aalen estimator overestimates the true variance for risk sets ≤ 5 ◮ The Greenwood estimator underestimates the true variance, but has a

smaller MSE

◮ The 2 estimators coincide for risk sets ≥ 10

◮ Preliminary simulations in the multistate framework:

◮ Comparable findings

◮ Recommendations:

◮ Use of the Aalen estimator Allignol et al. (FDM) mvna Package 16/27

slide-27
SLIDE 27

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Summary

◮ The mvna package provides a way to easily estimate and display the

cumulative transition hazards from multistate models

◮ Extremely useful in illustrating and understanding complex event

history processes, e.g.,

◮ with competing risks ◮ with a time-dependent covariate

◮ Outlook:

◮ etm package for computing the empirical transition matrix (transition

probabilities)

Allignol et al. (FDM) mvna Package 17/27

slide-28
SLIDE 28

Introduction Package Description Illustration What the package adds Note on the Variance Estimators Summary

Bibliography

Aalen, O. (1978). Nonparametric Inference for a family of Counting Processes. The Annals of Statistics, 6:701–726. Andersen, P. K., Borgan, O., Gill, R. D. and Keiding, N. (1993). Statistical Models Based on Counting Processes. Springer-Verlag, New-York. Klein, J. P. (1991). Small Sample Moments of Some Estimators of the Variance of the Kaplan-Meier and Nelson-Aalen Estimators. Scandinavian Journal of Statistics, 18:333–340.

Allignol et al. (FDM) mvna Package 18/27

slide-29
SLIDE 29

Appendix

Data & Model

◮ (Xt)t≥0 the competing risks process

◮ Xt ∈ {0, 2, 3}

◮ The failure time T at which patients leave the initial state 0 is

◮ T = inf{t ∈ [0, ∞)|Xt = 0} ◮ XT denotes the failure cause

◮ Cause-specific hazard:

α0i(t) = lim

∆t→0

P(t ≤ T < t + ∆t, XT = i|T ≥ t) ∆t , i = 2, 3

Allignol et al. (FDM) mvna Package 19/27

slide-30
SLIDE 30

Appendix

How to?

New Definition of the Competing Risks Process

Allignol et al. (FDM) mvna Package 20/27

slide-31
SLIDE 31

Appendix

How to?

New Definition of the Competing Risks Process

1 2 3 2 3

✡ ✡ ✡ ✡ ✡ ✢ ❏ ❏ ❏ ❏ ❏ ❫ ✡ ✡ ✡ ✡ ✡ ✢ ❏ ❏ ❏ ❏ ❏ ❫ No pneumonia

  • n admission

Pneumonia

  • n admission

Discharge Death Discharge Death

α02(t) α03(t) α12(t) α13(t)

Allignol et al. (FDM) mvna Package 20/27

slide-32
SLIDE 32

Appendix

How to?

> ### Matrix of logical indicating the possible transitions > tra <- matrix(ncol=4,nrow=4,FALSE) > tra[1:2,3:4] <- TRUE > tra [,1] [,2] [,3] [,4] [1,] FALSE FALSE TRUE TRUE [2,] FALSE FALSE TRUE TRUE [3,] FALSE FALSE FALSE FALSE [4,] FALSE FALSE FALSE FALSE

Allignol et al. (FDM) mvna Package 21/27

slide-33
SLIDE 33

Appendix

How to?

> ### Nelson_Aalen estimates > na.pneu <- mvna(data=dat.sir, + state.names=c("0","1","2","3"), + tra=tra,cens.name="cens")

Allignol et al. (FDM) mvna Package 21/27

slide-34
SLIDE 34

Appendix

How to?

> ### Nelson_Aalen estimates > na.pneu <- mvna(data=dat.sir, + state.names=c("0","1","2","3"), + tra=tra,cens.name="cens") > na.pneu Estimated cumulative hazard for transition 0 to 2 Time [1] 1 16 30 46 183 Nelson-Aalen estimates [1] 0.024 1.336 2.166 2.863 5.613 Variance estimates [1] 0.000 0.005 0.014 0.033 1.411 Alternative variance estimates [1] 0.000 0.004 0.013 0.031 0.266

Allignol et al. (FDM) mvna Package 21/27

slide-35
SLIDE 35

Appendix

How to?

> ### Plot > xyplot(na.pneu, + tr.choice=c("0 2","1 2","0 3","1 3"), + aspect=1,strip=strip.custom(bg="white", + factor.levels= + c("No pneumonia on admission - Discharge", + "Pneumonia on admission - Discharge", + "No pneumonia on admission - Death", + "Pneumonia on admission - Death"), + par.strip.text=list(cex=0.9)), + scales=list(alternating=1),xlab="Days", + ylab="Nelson-Aalen estimates")

Allignol et al. (FDM) mvna Package 21/27

slide-36
SLIDE 36

Appendix

Cumulative Incidence Functions

◮ CIF of discharge

F2(t) = P(T ≤ t, XT = 2) = t P(T > u−)α02(u)du

◮ Depends on both cause-specific hazards

P(T > t) = exp t α02(u) + α03(u)du

  • ◮ Loss of the one to one relationship between hazard and probability

Allignol et al. (FDM) mvna Package 22/27

slide-37
SLIDE 37

Appendix

Time-dependent Covariate

as a Transient State in a Multistate Model

1 2

✟ ✟ ✟ ✟ ✟ ✟ ✟ ✙ ✟✟✟✟✟✟ ✟ ✯ ✲ ❍❍❍❍❍❍ ❍ ❥ Ventilation No Ventilation End-of-Stay

α01(t) α10(t) α12(t) α02(t)

Allignol et al. (FDM) mvna Package 23/27

slide-38
SLIDE 38

Appendix

Model

◮ (Vt)t≥0 the stochastic process

◮ Vt ∈ {0, 1, 2}

◮ Survival time:

T = inf{t ∈ [0, ∞)|Xt = 2}

◮ The transition hazard is

αij(t)dt = P(Xt+dt = j|Xt = i)

Allignol et al. (FDM) mvna Package 24/27

slide-39
SLIDE 39

Appendix

Nelson-Aalen Estimates

Days Nelson−Aalen estimates

2 4 6 8 10 12 50 100 150 No ventilation −− Discharge/Death 50 100 150 Ventilation −− Discharge/Death

Allignol et al. (FDM) mvna Package 25/27

slide-40
SLIDE 40

Appendix

Time-dependent Covariate

Cox Model

Allignol et al. (FDM) mvna Package 26/27

slide-41
SLIDE 41

Appendix

Time-dependent Covariate

Cox Model

◮ Cox proportional hazards model:

α12(t) = α02(t). exp(β)

Allignol et al. (FDM) mvna Package 26/27

slide-42
SLIDE 42

Appendix

Time-dependent Covariate

Cox Model

◮ Cox proportional hazards model:

α12(t) = α02(t). exp(β)

1 2

✲ ❍❍❍❍❍❍ ❍ ❥ ✟ ✟ ✟ ✟ ✟ ✟ ✟ ✙ ✟✟✟✟✟✟ ✟ ✯ Ventilation No Ventilation End-of-Stay

α12(t) α02(t)

Allignol et al. (FDM) mvna Package 26/27

slide-43
SLIDE 43

Appendix

Cox Model

◮ Cox model:

HR 95% CI 0.179 [0.149; 0.214]

Allignol et al. (FDM) mvna Package 27/27

slide-44
SLIDE 44

Appendix

Cox Model

◮ Cox model:

HR 95% CI 0.179 [0.149; 0.214]

Days Nelson−Aalen estimates

2 4 6 8 10 12 50 100 150 No ventilation −− Discharge/Death 50 100 150 Ventilation −− Discharge/Death

Allignol et al. (FDM) mvna Package 27/27