Kaplan-Meier Survival

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Kaplan-Meier Survival

drfg2008
Two questions to Kaplan-Meier (SPSS-Plot):

[1]
I would like to plot a survival funtion (Kaplan-Meier) for men and women plus (!) a total: men+women (overall-survival) within one plot.

[2]
I would like to plot a survival funtion (Kaplan-Meier) for men and women plus (!) age-group (up to 50 /over 50) within one plot.


Is there any possibility?


Thanks
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: Kaplan-Meier Survival

Spousta Jan
Hi drfg2008,

The trick is to add the "overall" data (or the separate group data) to the original data file. E.g.

GET
  FILE='C:\Program Files\SPSS14\Mouse survival.sav'
  /keep status time icrfd /rename (icrfd  = sex).
val lab sex 0 "Male" 1 "Female" 2 "Overall".
SAVE OUTFILE='C:\temp\km.sav' /COMPRESSED.
compute sex = 2.
ADD FILES /FILE=* /FILE='C:\temp\km.sav'.
EXECUTE.
KM
  time  BY sex  /STATUS=status(1)
  /PRINT MEAN
  /PLOT SURVIVAL .

Best,

Jan

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of drfg2008
Sent: Sunday, March 20, 2011 8:01 AM
To: [hidden email]
Subject: Kaplan-Meier Survival

Two questions to Kaplan-Meier (SPSS-Plot):

[1]
I would like to plot a survival funtion (Kaplan-Meier) for men and women plus (!) a total: men+women (overall-survival) within one plot.

[2]
I would like to plot a survival funtion (Kaplan-Meier) for men and women plus (!) age-group (up to 50 /over 50) within one plot.


Is there any possibility?


Thanks

-----
FUB

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Kaplan-Meier-Survival-tp4117675p4117675.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD



_____________
Tato zpráva a všechny připojené soubory jsou důvěrné a určené výlučně adresátovi(-ům). Jestliže nejste oprávněným adresátem, je zakázáno jakékoliv zveřejňování, zprostředkování nebo jiné použití těchto informací. Jestliže jste tento mail dostali neoprávněně, prosím, uvědomte odesilatele a smažte zprávu i přiložené soubory. Odesilatel nezodpovídá za jakékoliv chyby nebo opomenutí způsobené tímto přenosem.

Jste si jisti, že opravdu potřebujete vytisknout tuto zprávu a/nebo její přílohy? Myslete na přírodu.


This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the message as well as all attached documents. The sender does not accept liability for any errors or omissions as a result of the transmission.

Are you sure that you really need a print version of this message and/or its attachments? Think about nature.

-.- --

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Kaplan-Meier Survival

drfg2008
Thanks Jan ,

that's what was done. I hoped there is a more elegant solution.


Frank
Dr. Frank Gaeth