Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

EXAMPLES ON COMPARISON OF SURVIVAL CURVES

LOGRANK TEST
Consider the following two data sets, each having two treatment groups (0 and 1).

Data Set 1 Data Set 2

Death Treatment Death Treatment

Time Group Time Group

1 0 1 0

2 0 2 0

3 0 3 0

4 0 4 0

5+ 0 5+ 0

6 0 6 0

1+ 1 1.25+ 1

2 1 1.75 1

3+ 1 3.25+ 1

14 1 13.75 1

15 1 15.25 1

16 1 15.75 1

Compute the logrank CMH – type variance and the logrank CMH – Statistic for the
data set 1.

SOLUTION

In this problem, we want to compute the logrank CMH-type variance for Data
Set1.
Ordered Group 0 Group 1 combined
Death d0j c0j r0j d1j c1j r1j dj rj ej oj- ej Vj
times

1 1 0 6 0 1 6 1 12 0.5 0.5 0.25

2 1 0 5 1 0 5 2 10 1 0 0.4444

3 1 0 4 0 1 4 1 8 0.5 0.5 0.25

4 1 0 3 0 0 3 1 6 0.5 0.5 0.25

5 0 1 2 0 0 3 0 5 0 0 0

6 1 0 1 0 0 3 1 4 0.25 0.75 0.1875

14 0 0 0 1 0 3 1 3 0 0 0

15 0 0 0 1 0 2 1 2 0 0 0

16 0 0 0 1 0 1 1 1 0 0 0

Sum 2.25 1.3819

d j r0 j
O j = d0 j , ej =
rj

r1 j r0 j d j (r j − d j )
Vj =
r j2 (r j − 1)

VarCMH = V j = 1.3819

 CMH
2
=
(2.25)2 = 3.6634
1.3819
Compute the linear rank – type variance and the linear rank type – Statistic for the
data set 2.

Linear rank type variance for data set 2

Ordered Group ̂ (t j )
Death dj rj Score wj
times

1 0 1 12 0.0833 0.9167

1.25+ 1 0 11 0.0833 -0.0833

1.75 1 1 10 0.1833 0.8167

2 0 1 9 0.2944 0.7056
3 0 1 8 0.4194 0.5806

3.25+ 1 0 7 0.4194 -0.4194

4 0 1 6 0.5861 0.4139

5+ 0 0 5 0.5861 -0.5861

6 0 1 4 0.8361 0.1639

13.75 1 1 3 1.1694 -0.1694

15.25 1 1 2 1.6694 -0.6694

15.75 1 1 1 2.6694 -1.6694

ˆ (t ) =
dj
 j 
j:t j  t rj

Logrank statistic S is the sum of scores for group 0.

S = 0.9167+0.7056+0.5806+0.4139+0.1639-0.5861 = 2.1946
n
n0 n1  ws2
6  6  6.3305
Linear rank type variance = Var (S ) =
j =1
= = 1.7265
n(n − 1) 12  11

2.1946
Z= = 1.6702   linear
2
= 1.67022 = 2.790
1.7265

You might also like