Date: Wed, 31 Aug 2005 17:15:54 +0200
Reply-To: Marta García-Granero
<biostatistics@terra.es>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Marta García-Granero
<biostatistics@terra.es>
Organization: Asesoría Bioestadística
Subject: Re: KaplanMeir
In-Reply-To: <s3158ac6.084@ngate01.cdha.nshealth.ca>
Content-Type: text/plain; charset=ISO-8859-15
Hi Terry,
TR> I'm new to SPSS and I'm wondering if anyone has any examples on how to
TR> do KaplanMeir Patient Survival and Graft Survial curves for transplant
TR> patients.
* See: http://www.graphpad.com/prism/learn/Survival%20analysis.pdf on
survival after transplant.
* Control (n=8): 46 46+ 64+ 78 124 130+ 150+ 150+
* Treated (n=9): 9 26 43+ 46 64 75 100 130+ 130+
* (+) indicates censored data - subjects withdrawn alive.
DATA LIST LIST/group (F8.0) time (F8.0) status (F8.0).
BEGIN DATA
1 46 1
1 46 0
1 64 0
1 78 1
1 124 1
1 130 0
1 150 0
1 150 0
2 9 1
2 26 1
2 43 0
2 46 1
2 64 1
2 75 1
2 100 1
2 130 0
2 130 0
END DATA.
VALUE LABEL group 1'Control' 2 'Treated' /status 0'Alive' 1'Died'.
KM time BY group
/STATUS=status(1)
/PRINT TABLE MEAN
/PLOT SURVIVAL
/TEST LOGRANK
/COMPARE OVERALL POOLED .
* Using the GUI:
* ANALYZE - SURVIVAL - KAPLAN-MEIER:
* TIME: time
* STATUS: status
* DEFINE EVENT: SINGLE VALUE: 1
* CONTINUE
* FACTOR: group
* COMPARE FACTOR: Select 'Log-Rank'
* CONTINUE
* OPTIONS: Select 'Plots: Survival'.
* CONTINUE
* OK
Regards
Marta