casebase : an alternative framework for survival analysis Max - - PowerPoint PPT Presentation

casebase an alternative framework for survival analysis
SMART_READER_LITE
LIVE PREVIEW

casebase : an alternative framework for survival analysis Max - - PowerPoint PPT Presentation

casebase : an alternative framework for survival analysis Max Turgeon November 26th, 2019 University of Manitoba Departments of Statistics and Computer Science 1/50 Acknowledgements This project is joint work with: Sahir Bhatnagar


slide-1
SLIDE 1

casebase: an alternative framework for survival analysis

Max Turgeon November 26th, 2019

University of Manitoba Departments of Statistics and Computer Science 1/50

slide-2
SLIDE 2

Acknowledgements

This project is joint work with:

  • Sahir Bhatnagar (McGill)
  • Jesse Islam (McGill)
  • Olli Saarela (U. Toronto)
  • Jim Hanley (McGill)

2/50

slide-3
SLIDE 3

Outline

  • 1. Overview of case-base sampling
  • 2. Presentation of R package casebase
  • Case studies
  • 3. Current and future directions

3/50

slide-4
SLIDE 4

Introduction

slide-5
SLIDE 5

Motivation

  • Jane Doe, 35 yo, received stem-cell transplant for acute

myeloid leukemia

  • “What is my 5-year risk of relapse?”
  • P(Time to event < 5, Relapse | Covariates)
  • “What about 1-year? 2-year?”
  • A smooth absolute risk curve.

4/50

slide-6
SLIDE 6

Motivation

Hern´ an, M.A. (2010). The hazards of hazard ratios.

5/50

slide-7
SLIDE 7

Risk-set sampling

  • Methods like Cox regression use risk-set sampling.
  • When an event occurs, we compare the individual with other

individuals in our study that were “at risk” at that time point.

  • By matching on time, these methods eliminate the baseline

hazard (nuisance parameter)

  • Absolute risks, cumulative incidence functions and survival

functions can be recovered using the semi-parametric Breslow estimator.

  • This leads to step functions.

6/50

slide-8
SLIDE 8

Summary

  • Case-base sampling is a simple approach to modelling

directly the hazards using (smooth) parametric families.

  • Introduced by Hanley & Miettinen [1], based on ideas by

Mantel [2].

  • Smooth hazards give rise to smooth absolute risk curves.
  • This approach was implemented in the R package casebase.
  • Available on CRAN.
  • See also our website: http://sahirbhatnagar.com/casebase/

7/50

slide-9
SLIDE 9

Case-base sampling

slide-10
SLIDE 10

Population-Time plots

50,000 100,000 150,000 5 10 15

Follow−up time Population

8/50

slide-11
SLIDE 11

Population-Time plots

  • ● ●
  • ● ● ●
  • ● ●
  • ● ●
  • 50,000

100,000 150,000 5 10 15

Follow−up time Population

8/50

slide-12
SLIDE 12

Population-Time plots

  • 50,000

100,000 150,000 5 10 15

Follow−up time Population

8/50

slide-13
SLIDE 13

Population-Time plots

  • 50,000

100,000 150,000 5 10 15

Follow−up time Population

8/50

slide-14
SLIDE 14

Population-Time plots

  • 50,000

100,000 150,000 5 10 15

Follow−up time Population

8/50

slide-15
SLIDE 15

Population-Time plots

  • 50,000

100,000 150,000 5 10 15

Follow−up time Population

8/50

slide-16
SLIDE 16

Population-Time plots

  • ● ●
  • ● ●
  • ScrArm: 1

ScrArm: 0 5 10 15 25,000 50,000 75,000 25,000 50,000 75,000

Follow−up time Population

8/50

slide-17
SLIDE 17

Population-Time plots

  • ● ●
  • ● ●
  • ScrArm: 1

ScrArm: 0 5 10 15 25,000 50,000 75,000 25,000 50,000 75,000

Follow−up time Population

8/50

slide-18
SLIDE 18

Case-base sampling–Overview

  • The unit of analysis is a person-moment.
  • Case-base sampling reduces the model fitting to a familiar

logistic regression.

  • The sampling process is taken into account using an offset

term.

  • By sampling a large base series, the information loss

eventually becomes negligible.

  • This framework can easily be used with time-varying

covariates (e.g. time-varying exposure).

9/50

slide-19
SLIDE 19

Parametric families

We can fit any hazard λ of the following form: log λ(t; α, β) = g(t; α) + βX. Different choices of the function g leads to familiar parametric families:

  • Exponential: g is constant.
  • Gompertz: g(t; α) = αt.
  • Weibull: g(t; α) = α log t.

10/50

slide-20
SLIDE 20

From hazards to risks

  • Once we have an estimate ˆ

λ(t) of the hazard, we can get an estimate of the survival function: ˆ S(t) = exp

t ˆ λ(u)du

  • .
  • Similarly, we can get an estimate of the cumulative incidence

(i.e. CDF):

  • CI(t) = 1 − ˆ

S(t).

11/50

slide-21
SLIDE 21

Theoretical details

slide-22
SLIDE 22

Assumptions

For notational convenience, we will assume Type I censoring (e.g. every subject is followed until the event occurs or the end of the study). We have two counting processes at play:

  • Event of interest: A non-homogeneous Poisson process N(t)

with hazard λ(t; θ).

  • Case-base sampling: A non-homogeneous Poisson process

M(t) with hazard ρ(t).

  • In most examples, we will sample uniformly (i.e. homogeneous

Poisson process).

12/50

slide-23
SLIDE 23

Likelihood

The likelihood for this data-generating mechanism is given by L(θ) =

n

  • i=1
  • t∈(0,τ]
  • λi(t; θ)dNi(t)

ρi(t) + λi(t; θ) dMi(t) . This is reminiscent of a logistic likelihood, with offset log(1/ρi(t)).

13/50

slide-24
SLIDE 24

Likelihood

Theorem [Saarela (2015)]

  • The above likelihood is a partial likelihood for the full

data-generating mechanism.

  • The corresponding score process has mean zero.
  • The corresponding predictable variation process is equal to the
  • bserved information process in expectation.

14/50

slide-25
SLIDE 25

Likelihood

Theorem [Saarela (2015)]

  • The above likelihood is a partial likelihood for the full

data-generating mechanism.

  • The corresponding score process has mean zero.
  • The corresponding predictable variation process is equal to the
  • bserved information process in expectation.

Implication: All the GLM machinery (e.g. deviance tests, information criteria, regularization) is available to us.

14/50

slide-26
SLIDE 26

Vaccination safety (Saarela & Hanley, 2015)

  • The motivation comes from Patel et al. (2011).
  • They studied the potential effect of rotavirus vaccination on

intussusception incidence in infants.

  • Exposure period is one week after vaccination.

15/50

slide-27
SLIDE 27

Vaccination safety (Saarela & Hanley, 2015)

  • 2,500

5,000 7,500 10,000 50 100

Age Population

16/50

slide-28
SLIDE 28

Different time scales

  • Study on risk factors for cardio-vascular diseases (CVD)
  • Time since enrolment does not have much clinical value...
  • With case-base sampling, we can treat all time variables

symmetrically.

17/50

slide-29
SLIDE 29

Different time scales

18/50

slide-30
SLIDE 30

Different time scales

18/50

slide-31
SLIDE 31

Different time scales

18/50

slide-32
SLIDE 32

Different time scales

18/50

slide-33
SLIDE 33

casebase package

slide-34
SLIDE 34

Overview of main functions

There are essentially four main functions in the package:

  • popTime: Creates popTime objects that can be plotted to

create population-time plots.

  • sampleCaseBase: Samples a base series uniformly from the

study base.

  • fitSmoothHazard: Fits a parametric hazard to the data

using case-base sampling.

  • absoluteRisk: Estimates absolute risks (or cumulative

incidence functions) from a fitted hazard.

19/50

slide-35
SLIDE 35

popTime

popTime(data, time, event, censored.indicator, exposure)

  • time, event: Variable names representing these quantities. If

not specified, we try to guess.

  • exposure: To create stratified population-time plots.

20/50

slide-36
SLIDE 36

sampleCaseBase

sampleCaseBase(data, time, event, ratio = 10, comprisk = FALSE, censored.indicator)

  • ratio: Ratio of the size of the base series to the case series

(i.e. how many controls for each case?)

  • Note: Rarely need to call directly.

21/50

slide-37
SLIDE 37

fitSmoothHazard

fitSmoothHazard(formula, data, time, family = c("glm", "gam", "gbm", "glmnet"), censored.indicator, ratio = 100, ...) fitSmoothHazard.fit(x, y, formula_time, time, event, family = c("glm", "gbm", "glmnet"), censored.indicator, ratio = 100, ...)

  • We allow both a formula and a matrix interface.
  • We have four different model families:
  • glm: Vanilla case-base sampling.
  • gam: Generalized additive models.
  • gbm: Gradient boosted models (experimental!).
  • glmnet: Regularized logistic regression.

22/50

slide-38
SLIDE 38

absoluteRisk

absoluteRisk(object, time, newdata, method = c("numerical", "montecarlo"), nsamp = 100, onlyMain = TRUE, ...)

  • time: Vector of time values at which we compute the risk.
  • method: Should we use numerical or Montecarlo integration.

23/50

slide-39
SLIDE 39

Case studies

slide-40
SLIDE 40

Case Study I–Veteran data

  • Survival data for 137 patients from Veteran’s Administration

Lung Cancer Trial.

  • Patients were randomized to one of two chemotherapy

treatments.

24/50

slide-41
SLIDE 41

Veteran data–Population-Time plot

  • test

standard

250 500 750 1000 20 40 60 20 40 60

Follow−up time Population

25/50

slide-42
SLIDE 42

Veteran data–Model fit

phreg(Surv(time, status) ~ karno + diagtime + age + prior + celltype + trt, data = veteran, shape = 0, dist = "weibull") fitSmoothHazard(status ~ log(time) + karno + diagtime + age + prior + celltype + trt, data = veteran) coxph(Surv(time, status) ~ karno + diagtime + age + prior + celltype + trt, data = veteran)

26/50

slide-43
SLIDE 43

Veteran data–Estimates

Variables Cox Case-Base Weibull Karnofsky score 0.97 0.97 0.97 Time from diagnosis 1.00 1.00 1.00 Age 0.99 1.00 0.99 Prior therapy 1.07 1.06 1.05 Cell type Squamous 0.67 0.66 0.65 Small cell 1.58 1.56 1.59 Adeno 2.21 2.17 2.21 Treatment 1.34 1.30 1.28

27/50

slide-44
SLIDE 44

Veteran data–95% CI

Variables Case-Base Weibull Karnofsky score (0.96, 0.98) (0.96, 0.98) Time from diagnosis (0.98, 1.02) (0.98, 1.02) Age (0.98, 1.01) (0.98, 1.01) Prior therapy (0.67, 1.66) (0.67, 1.64) Cell type Squamous (0.38, 1.15) (0.38, 1.12) Small cell (0.94, 2.64) (0.95, 2.65) Adeno (1.19, 3.94) (1.23, 3.97) Treatment (0.87, 1.94) (0.86, 1.90)

28/50

slide-45
SLIDE 45

Veteran data–Risk plot

50 100 150 200 250 300 0.0 0.2 0.4 0.6 0.8 1.0 Days Cumulative Incidence (%) semi−parametric (Cox) parametric (casebase)

29/50

slide-46
SLIDE 46

Case Study II–ERSPC data

  • European Randomized Study of Prostate Cancer Screening

(Schroeder et al., 2009)

  • 159,893 men between the ages of 55 and 69 years at entry.
  • Recruited from seven European countries; recruitment started

at different time.

30/50

slide-47
SLIDE 47

ERSPC data–Population-Time plot

  • ● ●
  • ● ●
  • ScrArm: 1

ScrArm: 0 5 10 15 25,000 50,000 75,000 25,000 50,000 75,000

Follow−up time Population

31/50

slide-48
SLIDE 48

ERSPC data–Model fit

library(splines) coxph(Surv(Follow.Up.Time, DeadOfPrCa) ~ ScrArm, data = ERSPC) fitSmoothHazard(DeadOfPrCa ~ bs(Follow.Up.Time) + ScrArm, data = ERSPC)

32/50

slide-49
SLIDE 49

ERSPC–Hazard ratio estimates

Model HR 95% CI Cox 0.80 (0.67 0.95) Case-base 0.80 (0.68, 0.96)

33/50

slide-50
SLIDE 50

ERSPC–Risk estimates

5 10 15 0.000 0.005 0.010 0.015 Years since Randomization Cumulative Incidence Control group (Cox) Control group (Casebase) Screening group (Cox) Screening group (Casebase)

34/50

slide-51
SLIDE 51

Non-proportional hazard

  • Recall that we are explicitly modelling time.
  • For this reason, we can fit non-proportional hazards using

interaction terms

  • Status ~ time * covariate
  • We will illustrate this approach using the Stanford Transplant

data (available in the package survival).

35/50

slide-52
SLIDE 52

Case Study III–Stanford transplant data

  • Survival times of potential heart transplant recipients

(Crowley & Hu, 1977).

  • Evaluate the effect of transplant on subsequent survival
  • For the purposes of this talk, we assume that exposure (i.e.

transplant or no) is assessed at the beginning of follow-up.

36/50

slide-53
SLIDE 53

Stanford data–Population-Time plot

  • Transplant

No Transplant

500 1000 1500 20 40 60 20 40 60

Follow−up time Population

37/50

slide-54
SLIDE 54

Stanford data–Model fit

fit1 <- fitSmoothHazard(fustat ~ transplant, data = jasa, time = "futime") fit2 <- fitSmoothHazard(fustat ~ transplant + futime, data = jasa, time = "futime") fit3 <- fitSmoothHazard(fustat ~ transplant + bs(futime), data = jasa, time = "futime") fit4 <- fitSmoothHazard(fustat ~ transplant*bs(futime), data = jasa, time = "futime")

38/50

slide-55
SLIDE 55

Stanford data–Model selection

Model Predictors PH AIC fit1 transplant Yes 802.34 fit2 transplant + time Yes 760.96 fit3 transplant + bs(time) Yes 742.91 fit4 transplant*bs(time) No 747.38

39/50

slide-56
SLIDE 56

Stanford transplant data–Hazard and risk plots

0.00 0.01 0.02 0.03 0.04 250 500 750 1000

Time Hazard Status

NoTrans Trans

40/50

slide-57
SLIDE 57

Stanford transplant data–Hazard and risk plots

0.00 0.25 0.50 0.75 1.00 250 500 750 1000

Time Risk Status

NoTrans Trans

40/50

slide-58
SLIDE 58

Case Study IV–Bone-marrow transplant study

  • Data on patients who underwent haematopoietic stem cell

transplantation for acute leukemia.

  • Two types of stem-cell harvest:
  • Bone marrow and peripheral blood
  • Peripheral blood only
  • Event of interest is relapse

41/50

slide-59
SLIDE 59

Bone-marrow study–Data

Variable description Statistical summary Sex M=Male (87) F=Female (72) Disease ALL (59) AML (100) Phase CR1 (43) CR2 (40) CR3 (10) Relapse (65) Type of transplant BM+PB (15) PB (144) Age of patient (years) 16–62 33 (IQR 19.5) Failure time (months) 0.13–131.77 20.28 (30.78) Status indicator 0=censored (40) 1=relapse (49) 2=competing event (70)

42/50

slide-60
SLIDE 60

Bone-marrow study–Model fit

fitSmoothHazard(Status ~ bs(ftime, df = 5) + Sex + D + Phase + Source + Age, data = bmtcrr, time = "ftime") comp.risk(Event(ftime, Status) ~ const(Sex) + const(D) + const(Phase) + const(Source) + const(Age), data = bmtcrr, cause = 1, model = "fg") coxph(Surv(ftime, Status == 1) ~ Sex + D + Phase + Source + Age, data = bmtcrr)

43/50

slide-61
SLIDE 61

Bone-marrow data–Hazard ratios and 95% CI

Case-base Cox regression Variable Hazard ratio 95% CI Hazard ratio 95% CI Sex 0.64 (0.35, 1.20) 0.75 (0.42, 1.35) Disease 0.54 (0.27, 1.07) 0.63 (0.34, 1.19) Phase CR2 1.00 (0.37, 2.70) 0.95 (0.36, 2.51) Phase CR3 1.25 (0.24, 6.53) 1.38 (0.28, 6.76 ) Phase Relapse 4.71 (2.11, 10.54) 4.06 (1.85, 8.92) Source 1.89 (0.40, 8.99) 1.49 (0.32, 6.85) Age 0.99 (0.97, 1.02) 0.99 (0.97, 1.02)

44/50

slide-62
SLIDE 62

Bone-marrow data–Absolute risk plots

Acute Myeloid Leukemia Acute Lymphoid Leukemia 20 40 60 0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00

Time (in Months) Relapse risk Method

Case−base Fine−Gray Kaplan−Meier

45/50

slide-63
SLIDE 63

Discussion

slide-64
SLIDE 64

Discussion

  • We proposed a simple and flexible way of directly modelling

the hazard function, using logistic regression.

  • This leads to smooth estimates of the absolute risks.
  • We are explicitly modelling time.
  • We can test the significance of covariates.
  • The R package casebase provides convenient functions for

the different parts of the analysis.

46/50

slide-65
SLIDE 65

Ongoing projects

  • In ongoing work, I extended the theory to the setting of

competing risks.

  • Logistic regression is replaced by multinomial regression.
  • To get true absolute risks, we need to account for competing

risks.

  • Islam (PhD student of Bhatnagar) is working on combining

case-base sampling and penalized regression.

47/50

slide-66
SLIDE 66

Future directions

  • Methodology: Combining dimension reduction and case-base

sampling for survival analysis with high-dimensional covariates.

  • Software: Add tools for diagnostic and model performance.
  • Martingale residuals
  • ROC, AUC, Brier score
  • Parametric bootstrap

48/50

slide-67
SLIDE 67

References i

  • J. A. Hanley and O. S. Miettinen.

Fitting smooth-in-time prognostic risk functions via logistic regression. The International Journal of Biostatistics, 5(1), 2009.

  • N. Mantel.

Synthetic retrospective studies and related topics. Biometrics, pages 479–486, 1973.

  • O. Saarela.

A case-base sampling method for estimating recurrent event intensities. Lifetime data analysis, pages 1–17, 2015.

49/50

slide-68
SLIDE 68

References ii

  • O. Saarela and J. A. Hanley.

Case-base methods for studying vaccination safety. Biometrics, 71(1):42–52, 2015.

  • L. Scrucca, A. Santucci, and F. Aversa.

Regression modeling of competing risk using R: an in depth guide for clinicians. Bone marrow transplantation, 45(9):1388–1395, 2010.

50/50

slide-69
SLIDE 69

Questions or comments? For more details, visit http://sahirbhatnagar.com/casebase/

50/50