Presentation is loading. Please wait.

Presentation is loading. Please wait.

01/20151 EPI 5344: Survival Analysis in Epidemiology Survival curve comparison (non-regression methods) March 3, 2015 Dr. N. Birkett, School of Epidemiology,

Similar presentations


Presentation on theme: "01/20151 EPI 5344: Survival Analysis in Epidemiology Survival curve comparison (non-regression methods) March 3, 2015 Dr. N. Birkett, School of Epidemiology,"— Presentation transcript:

1 01/20151 EPI 5344: Survival Analysis in Epidemiology Survival curve comparison (non-regression methods) March 3, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive Medicine, University of Ottawa

2 01/20152 Comparing survival (1) A common RCT question: –Did the treatment make a difference to the rate of outcome development? A more general question: –Which treatment, exposure group, etc. has the best outcome lowest mortality, lowest incidence, best recovery

3 01/20153 Comparing survival (2) Can be addressed through: –Regression methods Cox models (later) –Non-regression methods Log-rank test Mantel-Hanzel Wilcoxon/Gehan

4 01/20154 dur status treat renal 8 1 1 1 180 1 2 0 632 1 2 0 852 0 1 0 52 1 1 1 2240 0 2 0 220 1 1 0 63 1 1 1 195 1 2 0 76 1 2 0 70 1 2 0 8 1 1 0 13 1 2 1 1990 0 2 0 1976 0 1 0 18 1 2 1 700 1 2 0 1296 0 1 0 1460 0 1 0 210 1 2 0 63 1 1 1 1328 0 1 0 1296 1 2 0 365 0 1 0 23 1 2 1 Data for the Myelomatous data set, Allison Does treatment affect survival?

5 Rank order the data within treatment groups Treatment = 1 dur status treat renal 8 1 1 1 8 1 1 0 52 1 1 1 63 1 1 1 220 1 1 0 852 0 1 0 365 0 1 0 1296 0 1 0 1328 0 1 0 1460 0 1 0 1976 0 1 0 Treatment = 2 dur status treat renal 13 1 2 1 23 1 2 1 18 1 2 1 70 1 2 0 76 1 2 0 180 1 2 0 195 1 2 0 210 1 2 0 632 1 2 0 700 1 2 0 1296 1 2 0 1990 0 2 0 2240 0 2 0 01/20155

6 6 New Rx Old Rx Effect of new treatment

7 01/20157 No renal disease Renal disease Effect of pre-existing renal disease

8 Comparing Survival (3) How to tell if one group has better survival? One approach is to compare survival at one point in time –One year survival –Five year survival This is the approach used with Cumulative Incidence Ratios (CIR aka RR). 01/20158

9 9 Δ Compare the cumulative incidence (1-S(t)) at 5 years using a t-test, etc.

10 01/201510 This approach is limited: For both of these situations, the five-year survival is the same for the two groups being compared. BUT, the overall pattern of survival in the study on the left is clearly different between the two groups while for the study on the right, it is not.

11 01/201511 Comparing Survival (4) Compare curves at each point Combine across all events Can limit comparison to times when an event happens titi

12 01/201512 D D C C  Risk Set – All people under study at time of event – Only include people at risk of having an event Comparing survival (5) D Risk set #1 Risk set #2 Risk set #3

13 01/201513 Comparing Survival (6) Nonparametric approaches –Log-rank –Mantel-Hanzel –Wilcoxon/Gehan –Other weighted methods (a wide variety exist) Closely related but not the same ‘Log rank’ is often presented as the Mantel-Hanzel (M- H) method without explanation –They differ slightly in their assumptions (more later) –We will use the M-H approach

14 01/201514 Comparing Survival (7) General approach –Tests the null hypothesis that the survival distribution of the 2 groups is the same –Usually assume that the ‘shape’ is the same not specified –But, a ‘location’ parameter is different –Example Both groups follow an exponential survival model Hazard is constant but different in the two groups. Affects the mean survival (location)

15 01/201515 Comparing Survival (8) General approach –Under the ‘null’, whenever an event happens, everyone in the risk set has the same probability of being the person having event –Combine all observations into one file –Rank order them on the time-to-event –At each event time, compute a statistic to compare the expected number of events in group 1 (or 2) to the observed number –Combine the results at each time point into a summary statistic –Compare the statistic to an appropriate reference standard.

16 01/201516 Comparing Survival (9) Example from Cantor We present the merged and sorted data in the table on the next slide. Group 1Group 2 3 5 8+ 10 15 2 5 11+ 13+ 14 16

17 01/201517 itR1R1 R2R2 R+R+ d1d1 d2d2 d+d+ 12 23 35 48 510 611 713 814 915 1016 itR1R1 R2R2 R+R+ d1d1 d2d2 d+d+ 125611011 23 35 48 510 611 713 814 915 1016 itR1R1 R2R2 R+R+ d1d1 d2d2 d+d+ 125611011 235510101 35 48 5 611 713 814 915 1016 itR1R1 R2R2 R+R+ d1d1 d2d2 d+d+ 125611011 235510101 35459112 48347000 5 246101 611145000 713134000 814123011 915112101 1016011011 d i = # events in group ‘I’; R i = # members of risk set at ‘t i ’

18 GroupDeadAliveTotal 1055 2156 11011 01/201518 Comparing Survival (10) Consider first event time (t=2). In the risk set at t=2, we have: –5 subjects in group 1 –6 subjects in group 2 We can represent this data as a 2x2 table. GroupDeadAliveTotalO 1,2 O 2,2 E 1,2 E 2,2 V2V2 1055 2156 Total1101101

19 01/201519 Comparing Survival (11) What are the ‘E’ and ‘V’ columns? –E i,t = expected # of events in group ‘i’ at time ‘t’ –V t = Approximate variance of ‘E’ at time ‘t’

20 01/201520 Comparing Survival (12) GroupDeadAliveTotalO 1,2 O 2,2 E 1,2 E 2,2 V2V2 1055 2156 Total11011010.4550.5450.248

21 01/201521 Comparing Survival (13) More generally, suppose we have: –d t1 = # events at time ‘t’ in group 1 –d t2 = # events at time ‘t’ in group 2 –d t+ = # events at time ‘t’ (d t1 +d t2 ) –R t1 = # in risk set at time ‘t’ in group 1 –R t2 = # in risk set at time ‘t’ in group 2 –R t+ = # in risk set at time ‘t’ (R t1 +R t2 ) Then, we have the expected # of events in group 1 is:

22 01/201522 Comparing Survival (14) –d t1 = # events at time ‘t’ in group 1 –d t2 = # events at time ‘t’ in group 2 –d t+ = # events at time ‘t’ (d t1 +d t2 ) –R t1 = # in risk set at time ‘t’ in group 1 –R t2 = # in risk set at time ‘t’ in group 2 –R t+ = # in risk set at time ‘t’ (R t1 +R t2 ) And, the ‘V’s are given by this formula:

23 GroupDeadAliveTotalO 1,2 O 2,2 E 1,2 E 2,2 V2V2 1055 2156 Total11011010.4550.5450.248 01/201523 GroupDeadAliveTotalO 1,3 O 2,3 E 1,3 E 2,3 V3V3 1145 2055 Total1910100.5 0.25 At time ‘2’ At time ‘3’

24 GroupDeadAliveTotalO 1,5 O 2,5 E 1,5 E 2,5 V5V5 1134 2145 Total279110.8891.1110.432 01/201524 GroupDeadAliveTotalO 1,t O 2,t E 1,t E 2,t VtVt 1d t1 R t1 2d t2 R t2 Totald t+ (R t+ - d t+ ) R t+ d t1 d t2 At time ‘5’ At time ‘t’

25 01/201525 Comparing Survival (15) Compute O 1t – E 1t for each event time ‘t’ Add up the differences across all events to get: This measures how far group ‘1’ differs from what would be expected if survival were the same in the two groups. If you had chosen group ‘2’ instead of group ‘1’, the sum of the differences would have been the same.

26 01/201526 Comparing Survival (16) Write this difference as: O + – E + And, let Then, we have: This is the log rank test

27 01/201527 itd t1 d t2 d t+ R t1 R t2 R t+ E t1 VtVt 1201156110.4550.248 2310155100.5000.250 351124590.8890.432 4800034700 5101012460.3330.222 61100014500 71300013400 8140111230.3330.222 9151011120.5000.250 101601101100 total4483.0101.624

28 Comparing Survival (17) The log-rank is nearly the same as the score test from Cox regression. If there are no ties, they will be the same value. –ties: 2 or more subjects with the same event time 01/201528

29 Comparing Survival (18) The test above essentially applies the Mantel-Hanzel test (covered in Epi 1) to tables created by stratifying the sample into groups based on the event times. The test can be written as: 01/201529 Log-rank or Mantel-Hanzel test

30 Comparing Survival (19) The test can be modified by assigning weights to each event time point. –Might be based on size of risk set at ‘t’ Then, the test becomes: 01/201530

31 Comparing Survival (20) Log-rank: –w t =1 –equally weights events at all points in time Wilcoxon test –w t =R t+ –Weight is the size of the Risk Set at time ‘t’ –Assigns more weight to early events than late events –large risk sets  more precise estimates Other variants exist These tests don’t give the same results. 01/201531

32 01/201532 Comparing Survival (21) Some Issues –More than 2 groups Method can be extended –Continuous Predictors Must categorize into groups –Multiple predictors Cross-stratify the predictors Limited # of variables which can be included

33 01/201533 Comparing Survival (22) Some Issues –Curves which cross THERE IS NO RIGHT ANSWER!!! Which is ‘better’ depends on the follow-up time –Relates to effect modification –How to weight early/late events Many different approaches –Wilcoxon gives more weight to early events Can give different answers, especially if p-values are close to 0.05

34 Practical stuff The next slide set looks at implementation in SAS –Strata statement –Test statement Expands the analysis options from the outline given here. 01/201534

35 Some stuff you may not want to know Each year, questions get raised about things like: –why is it called the ‘log-rank test’? The method doesn’t involve –logs –ranks –What is the difference between the ‘log-rank’ and the ‘Mantel-Haenzel’ tests. So, here’s a summary of that information 01/201535

36 Peto, Pike, et al, 1977 The name " logrank " derives from obscure mathematical considerations (Peto and Pike, 1973) which are not worth understanding; it's just a name. The test is also sometimes called, usually by American workers who cite Mantel (1966) as the reference for it, the " Mantel- Haenszel test for survivorship data [Peto, Pike, et al, 1977) 03/201436

37 Peto et al, 1973 In the absence of ties and censoring, we would be able to rank the M subjects from M (the first to fail) down to 1 (the last to fail). To the accuracy with which, as r varies between 2 and M + 1, the quantities are linearly related to the quantities, statistical tests based on the x i can be shown to be equivalent to tests based on group sums of the logarithms of the ranks of the subjects in those groups, and the x i are therefore called "logrank scores" even when, because of censoring, actual ranks are undefined. 03/201437

38 Theory (1) We looked at survival curves when we developed the log-rank test Actually, the test is examining an hypothesis related to the distribution of survival times: –Assume that the two groups have the same ‘shape’ or distribution of survival –BUT, they differ by the ‘location’ parameter or ‘mean’ Test can either assume proportional hazards or accelerated failure time model Can also be derived using counting process theory. 03/201438

39 Theory (2) Theory is based on continuous time –Models the ‘density’ of an event happening at any point in time, not an actual event. –Initial development ignored censoring Need to convert this theoretical model to the ‘real’ world. –Censored events –Events happen at discrete point in time –Ties happen 03/201439

40 Theory (3) Machin’s book presents 2 versions of this test, calling one the ‘log-rank’ and the other the ‘Mantel-Hanzel’ test This is incorrect. His ‘log rank’ is just an easier way to do the correct log-rank –Approximation which underestimates the true test score 03/201440

41 03/201441 Theory (4)

42 03/201442 Theory (5)

43 Theory(6) Tests are generally similar. They can differ if there are lots of tied events. There is more but you don’t really want to know it! 03/201443

44 03/201444 Example from Cantor We presented the log-rank test table earlier in this session. Here are the summary results Group 1Group 2 3 5 8+ 10 15 2 5 11+ 13+ 14 16

45 03/201445 itd t1 d t2 d t+ R t1 R t2 R t+ E t1 E t2 VtVt total4483.0104.9901.624

46 01/201546


Download ppt "01/20151 EPI 5344: Survival Analysis in Epidemiology Survival curve comparison (non-regression methods) March 3, 2015 Dr. N. Birkett, School of Epidemiology,"

Similar presentations


Ads by Google