a minitab macro for the kaplan-meier product limit ... · estimator and gehans test by...
TRANSCRIPT
ADf19 8 A MINITAB MACRO FOR THE KAPLAN-MEIER PRODUCT LIMIT /ESTIMATOR AND GEHAN'S TEST(U) WISCONSIN UNIV-MADISONCENTER FOR MATHEMATICAL SCIENCES A P SOMS NOV 87
UNCLASSIFIED CHS-TSR-88-i5 F/G 12/5 NL
*LAS
I 1111.4111
I LL U&*.
CMS Technical Summary Report #88-15
A MINITAB MACRO FOR THE KAPLAN-MEIER
PRODUCT LIMIT ESTIMATOR AND
GEHAN'S TEST
O Andrew P. Soms
fn
Center for the Mathematical SciencesUniversity of Wisconsin-Madison610 Walnut StreetMadison, Wisconsin 53705
November 1987
(Received November 2, 1987)
Approved for public releaseDistribution unlimited T lC
88 3E
88 323 046
Accession For
UNIVERSITY OF WISCONSIN-MADISON NTIS GRA&I
CENTER FOR THE MATHEMATICAL SCIENCES DTIC TABrUnannounced
A MINITAB MACRO FOR THE KAPLAN-MEIER PRODUCT LIMIT Justification_
ESTIMATOR AND GEHANS TEST ByDistribution/
Andrew P. Sores Availability Code
Technical Summary Report #88-15 Dist Special
November 1987
ABSTRACT
Two versions of a Minitab macro to compute the K-M ple and Gehan's testOii
are given. The shorter, km.geh, prints the K-M ple for both groups, gives Ccopy;INSPECTED
simultaneous plots of the survival curves and calculates the one and two-
sided P level of Gehan's test. The longer, kmt.geh, in addition to the
above, prints an ordered table of the observed values and their Gehan scores.
AMS (MOS) Subject Classification: 62-04
Key Words: Gehan's test; Kaplan-Meier; Macro; Minitab; Product-limit
estimator
a
Department of Mathematics, University of Wisconsin-Milwaukee, Milwaukee,
WI 53201.
A MINITAB MACRO FOR THE KAPLAN-MEIER PRODUCT LIMIT
ESTIMATOR AND GEHAN'S TEST
Andrew P. Soms
1. Introduction
Minitab is a user-friendly statistical computer package widely used in
industry and academia.- For more details, see Ryan, Joiner and Ryan (1985) or
Cobb and Gifford (1986). 'The Kaplan-Meier ple and Gehan's test are often used
in biostatistics and reliability theory to compare two survival distributions.
For definitions, assumptions and examples, see Brown, and Hollander (1977) or'
Miller (1981).
The main idea of the program is to first break ties between censored and
completed observations by adding to the censored observations one-half of the
smallest non-zero difference for the ordered combined observations. This does
not change the K-M ple or Gehan's test. Then, using an extension of Macro
for obtaining distinct values and replicate counts from a column of replicated
dataO by Gunter, Minitab Users' Group Newsletter, 5 (1984), 1, an ordered
table of distinct values, together with total replications, type of
observation (censored or completed), number in group one and number in group
two, is constructed. From this, the K-M ple and Gehan's test are then readily
computed. The second version of the program, kmt.geh, in addition to doing
everything the first, km.geh, does, also prints out the table and Gehan's
scores. -- -
Department of Mathematics, University of Wisconsin-Milwaukee, Milwaukee, WI53201.
An example from Miller (1981, pp. 49-50, pp. 203-205) has been worked in
the Appendix and agrees with Miller's solution. We also checked the example
in BrownI and Hollander (1977), p. 345 and pp. 347-350, and found agreement.
The two macros listed in the Appendix can be modified by the user, if
desired, by his computer's editor. The data can be conveniently read in from a
file by the Minitab 'read' command, as was done for the example in the
Appendix. The macros can easily be used by scientists not familiar with
statistics and/or more complex statistical computer packages to quickly assess
the significance of their data. For University of Wisconsin-Madison users, it
may be possible to transfer the macros directly from the Center for the
Mathematical Sciences VAX 780 to the user's computer and interested persons
should contact the author.
*The author would appreciate any comments and suggestions from researchers
using the macros.
References
Brown, B. W., Jr. and M. Hollander, "Statistics a biomedical introduction",
New York, John Wiley, 1977.
Cobb, G. and J. Gifford, Review of "Minitab handbook (Second edition)",
Journal of the American Statistical Association 81 (1986), 1127-1129.
Gunter, B., "Macro for obtaining distinct values and replicate counts from
a column of replicated data", Minitab Users' Group Newsletter 5 (1984), 1.
Miller, R. G., Jr., "Survival analysis", New York, John Wiley, 1981.
Ryan, B. F., B. L. Joiner and T. A. Ryan, Jr., "Minitab handbook (Second
edition)", Boston, Duxbury Press, 1985.
-2-
Appendix
We include here the listings of the two macros and a worked example from
Miller (1981, pp. 49-50, pp. 203-205).
-3-
AA
0c
:1.1 - 0- 0 c
0 0 a V vc ! .C= C a 0
6.. (0 000 - 00c do 0c 1 - .6 c 0 ;.
QC O -DCo 0' *SC 0 04*C 0O.'0-0 0 . 6>z - E- Q~
1,- 1 ON 0- 00! - 0 6C 0 * 0 ,M.- _- . -; >0 C *C~04 0 0O O aL * 00 0
.0 r
.0 0 0. ztf 00.'a"! % )0 .00 *0 it'DCc. 0l 'a ~0'0 CL -' C)0. I. 000 0 -'->0a 0 ..Z 0 0 A at
- 0 > ' --2 L- 0 -0 .c6o. >-0 0- aI- -'a OO . I
- o0 I0 - ''- 0 0 -09 0-0.000!I : ~ 0 0 - 0 OC) 0 7;0
006a o3 C%0E. 0= 0 -0 -0 > 0CL I) 0 0-0-a'C0 c 0C - 2 - C-a- O= * c .- . 0 - ' - 3 . C O f- 0 0 0 > X0 a- 0 , I
0. 1 -qt0 *(0 O - - 00 .OeW 0 (4C 00 1.0~ 0 0 0 'D-5 0 -o
-,- 1-4 0 Z0- 3 .Me .- C0
O.E u 0 000 0 4D- a--)0-n' 0. " .- U ----
10a- 3001 CO- 000 - C-- 3 *=. V6* C-W) e6Ua0a- 0 I> 0 -0 V -D
-.0.- 0 v ~ C 010 ' 1*1 - - 0 a) *0 " . - -0. 0* o 0 .0 0-0 . Ct 0
3 X02 000- 0 *- a0 E0 .- I l0~ 0. -a ma '-L2 6 .O -'- 0 - 0 0 0 C1 0- CO- 0 C'. - W
V, CSg* M 0 . 0 - - = 0 CE CC 00 1 . 06 0.% 0 In
91 0 1 V..0. UID -0 0 1 0 C' Z 0 10 C "1,b.-6 CO 0 . 0. 01 -0 Ua.- 000 Cr0' U 0 .0 I 0 0 In'
06 N 0( 0'00X. E CM>. .- 04-~ '~~@ ID- - 0 -E COW~ o-C 0 -Il (a0 '. 0-- 04 00£4 CL xI E E- 0 00 '-c-c .7-10 6-C Q..m.£3. -100 0-C*- 00 U C 0 0 0 0 a U-0 0 in 0
.30 0 C a(. 04 - 00 a. 0. Cc Cc -0-.-Q- U0 ...OA0 amQ 02v0 0a -
0 0v 000 - Qum.+C+ In .N4*-e
0a 00 00 cc
06- - - 91 0 -. 00; C- CL 0 06 10 -1 0- L0- a0-00--- IS00UcCI
go 0 0 0 0 0 0 06.00 - - - 6 0 0
ft'"ft40ftof, a -- 0 0 0 0 a 1
I06
C4
06 0
o 0 0
o 0 S 00 S S
L 0. 0 0.-3e C 0
III In- C 0.-
.0 A*i .0 f 0 CID
0 Q. Za 0 v 0 -9C0 AA on 0 A 0 -s
w X W 0 - x '0 .0 0.
C-0,o 0 ) - - --- ', 000 0 .* -- 05 U-080 0 ,zC'0 0 CO 0 0u. - . . 0 000 Cm0 0 a %X 0
--- C 0(. 0 0 . A 0
- Q S A I A A 4
0 0- u 0 0 .U l
A ~- 10 UV 040
*C4C 00'-U-'- * *.~000 *t) 5 0 ~-5-)
00O U C 0 - '~-
'I.0
a S
00
CL 0I.. em 0. a0 C - a
-0 9Lz
C- CL 0 I0
a a. Q CL
0 CL 0 MSfla
(ODO
*' 00 cM-0
a. ac
C; a. ,- a. e- 00 -n3U Z ,2ZC _
m -C-C - uit Q u 0 U .M XX 4 t jxx
0,- 0 0 600. 0 a0 - -- - - -as 0 IC1o 0.0 050a
CO 0"q. E0 hfq k- O-0 -. - 0-a 2 .2 22
.- a. C C~C --6-
tt
(0
a 0
(I - 0 Cow "D C. a a
C OD 0 Q ; Z a -- 0 - .0 Ol - a *C.C a 0 o 06
*o e(1 - 0 O D .S C 1- U C
C~0 .0 Voa' C 0 C4am-. z S- -~ 0 SO ' C FSC
C- a( - I O a 0- 0000.. CC. E-U - a. Qs- 0 C C
U0 eo 3. so aC I - = a-S 0'- , - (L 0': I - 0 OCIC- 00. ow'- VLS in 0f 0S.S --.3 0 Q qo a -00V.- 0 *c :.- - .!%
* ~ ~ ~ ~ i 0U Q 0-00. J eC - .00. -u 2, vS S 0 'U h
- 0 0 3, . .- Oo0 ca - o u s500J 0 W. CL = C 'a U 1 CU-
44S~ C--C 1-0 -IX a *-S aC C .0C40 1 0l V 0 a' 0 0 .0 55 W U
0 -. a '- a0 a*SDS0- 0 C S.em .S.- Q
-- ;r C060- C '- 0-~ aC it .- C6 a E 0I (0C C a - 00 00u > 0
*W- 0C- - - 0 - cx at
Ozc -~ ~ 0. e C eonCS0Z . *CW N~ C4 In
0 . f C 0 0 0 -E-** 0 C-o'-eo~*- C~C OS I U 0 -a a- 0 C .au CL> X - e C o -0V-- N- 0-- C 6 CE
-UItCIt eEOUL *fLa GC- ~0 > 0- e S0 In0m- 0 o v 0 Cv*
.D0-0CC 6-- .0 0 C ' -a) I (D Ob U-C~b- ON -50 (x - *CIE 0 -- 0 >. 0 0 0 4
.U E- 0 C C'.U O ,O - ; a O. 6; U 5 1 4 1%-4!,-a.--"I o o-.Ce 0 0- -6 4 v-s 0)--o C - -Dt ..-
o 00 3 8= 0 -.- - - in In .00-OD .0I-M-C a.-aW u*VU 0 aC U 66 a -~ N. . 0 0 - CL C" b- -- 0
C-OUC) 40 Q 0CA - 11 -U0 - - a)0Om 0 0 Q0 aCU C- 62h. 0O O C .0 fq0U . C U. 01 00 U %C
aO z0. 0.~ E zs0. 7;-. *sz zh -. ! ! A:U V U *N U .
20, COIN V mw .- oaao U --00UOC U 2 UC* aO-.0 CC C~ -0 -- Sa-NO'-10 -- U' :0%U aU
06-' -. 0 0 0 6 O 6 L20, L --
-3 U. 000C h 0
9c
N06
0
0
*A 0
0 0 QAoN N N -0 Z"
0 N * 0 U~w 4(N No 0 U- n c o o'- -. " I ; 4MC -- ;U
U0 0 * 0 4 a 0 0 0v
-4 Ct 0~OWC*nNW n VU)l * I O c4 - ) - 0 D. aT0 Iw - w0 04 6) U )0 1 0 7; 1
A a- -- l 0** . ~>. 9- .000 a0 5K 9Un o
CL~~~ 06 0U0 1 - 0 6 -. 0 a 0
W2UUCLuEo C - -0 0 0 000 0 0 U, *%.- 0 0
-~ U U U . i - C . -- U 11CLa a0 u CC Q *9 * C1 ) - u 0,0 u *L~ u*4- *--.- 0-, CL U u0
'I'.'
4 >0a. c
005
-0 0 .
Q. 0
O- 00 U
.0 0l- 0 .
C4 0- 0 .
0 6 0 00 S. vu-'.0 - 000 C
-N' 0~a OS0 0 a
00 -V-0
o-11 0 %0 06S 06 -u 0'
CN 0. c- '.~ x ~ 0*0
.4 0
* 'D
N N - 0- ,441cP.N -IO D .0. - 4.
0- ,. -C t 'Do- .0 r.C.Z 00~Q % 0 .2 l r
C400 i -.U 05 -.- .- U 00
49 i -0 :uX Q0X 00UU000C J X XI50 SUSCU )k_-- - U. OZ- .! 1; 06C-- EE-
00 0500 N0 0 O 0
0 a 0. .cQ.0qqq e0C oa 4 - qk.. f 0c. liq4q 0-
u * u . u -90
I~.
p
*1~
V
0A
a
0~
NO 0.CI -0-
.~ 0-0 -
J. U I~- N03 -
- Q00 *~0.0 In U
U--- 0-
-- 0.-3
0-0.0 ~
- 0o C 0'-I- ~ IC.. -
-00 0 ~ -01C - - U- 0 0
* I.20.--
- S0-
o .o0.-
I---N 0
o ~O
I 0(3
- 01
1£- -'--32
~* 0INS S
----. 0- N ~-
-S ~- UNQN EN 101 ~ U
0 0 COCO
0 00 OLUC
-- 0 U -- ~C0.00
-10-
,1':
06
-a - -C-- 4" M*
32 5 au
a... u I
I~ ~VV~ .V ~ V)Q~54Il0-
04
4c C'4SD
00
N *lC
0 cqbmbA A A 4 4; AA
C0inC
CL In
N:D
NGo
0 ,,
€ 0
(L wI0
got~
a 040
- -
0 0
A-
ID0
I-.
ic
,'I
*11
U'U
O~~~~~~ -I: ,i"- " '- "-4
C4 W) €' €0
fl) it) OD 0 ZC) -.
I
,iI- Ix"
-14-
4 04
.00
*N
CD~ I
CD0
N~ 0 00N C )S ) 0 -ICD 4 In 9 ODon a fn w toIt
.4p'
C4 on V " ) *
0 0
A~~~ AICD CDCD wCD 0
525 520
* Q
04
NN ------ N ---
o 0. *f 0
AAA AA
-16-
A4
W-w a 0 0 w'' v .w -Uw