+ Reply to Thread
Results 1 to 9 of 9

Thread: Discrepencies between SPSS and SAS

  1. #1
    Points: 25, Level: 1
    Level completed: 49%, Points required for next Level: 25

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Discrepencies between SPSS and SAS



    Does anyone know why there are differences in results when performing Kaplan Meier survival analysis tests in SPSS and SAS. The values do not match exactly and the bigger the sample population, the wider this difference becomes.

    Does anyone know what the difference in algorithms might be?
    Last edited by pauljj; 08-02-2012 at 09:47 AM.

  2. #2
    RotParaTon
    Points: 47,119, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardCommunity AwardMaster TaggerFrequent Poster
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,185
    Thanks
    212
    Thanked 1,639 Times in 1,401 Posts

    Re: Discrepencies between SPSS and SAS

    I'm guessing you would need to post your code for both.
    "His programming is malfunctioning. It begins! Get your weapons, he's going to become a killbot!!!" - bryangoodrich

  3. #3
    Points: 25, Level: 1
    Level completed: 49%, Points required for next Level: 25

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Discrepencies between SPSS and SAS

    Unfortunately I do not have hands on experience with this at the moment. I have been told when you use the two KM functions in SPSS and SAS, the survival time/duration is different in both. I was told maybe it is the way they censor the data? I need more details on this to write a report on the discrepancies.

  4. #4
    RotParaTon
    Points: 47,119, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardCommunity AwardMaster TaggerFrequent Poster
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,185
    Thanks
    212
    Thanked 1,639 Times in 1,401 Posts

    Re: Discrepencies between SPSS and SAS

    So you're writing a report on the way two programs differ and you haven't used either for the task of interest?
    "His programming is malfunctioning. It begins! Get your weapons, he's going to become a killbot!!!" - bryangoodrich

  5. #5
    Points: 25, Level: 1
    Level completed: 49%, Points required for next Level: 25

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Discrepencies between SPSS and SAS

    I'm doing research to help write the report. I have skimmed SPSS, but not SAS - I have only read about a bit about SAS. I was given some information, which is why I am trying to see if anyone here has experienced similar problems and has found reasons behind them.
    Last edited by pauljj; 08-02-2012 at 09:46 AM.

  6. #6
    IBM Rules
    Points: 13,389, Level: 75
    Level completed: 35%, Points required for next Level: 261
    Awards:
    Activity Award

    Posts
    2,598
    Thanks
    124
    Thanked 381 Times in 369 Posts

    Re: Discrepencies between SPSS and SAS

    For SPSS (go to the part that discusses this test, it starts on page 153)
    http://www.hks.harvard.edu/fs/pnorri...ics%2017.0.pdf

    This may help with the SAS code
    http://www.nesug.org/proceedings/nesug08/sa/sa20.pdf

    This might be useful as a general overview
    http://www.lexjansen.com/wuss/2004/h..._and_cox_p.pdf

    The answer to your question may involve reading the SPSS and SAS documentation and thinking carefully about what that entails in the context of this specific method. I dont know it well enough to comment beyond posting these links.
    "Facts are stubborn things, but statistics are more pliable." Mark Twain

  7. #7
    Points: 25, Level: 1
    Level completed: 49%, Points required for next Level: 25

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Discrepencies between SPSS and SAS

    Thank you.

    If anyone has found similar results, feel free to share
    Last edited by pauljj; 08-02-2012 at 09:46 AM.

  8. #8
    TS Contributor
    Points: 6,942, Level: 54
    Level completed: 96%, Points required for next Level: 8

    Posts
    782
    Thanks
    0
    Thanked 71 Times in 70 Posts

    Re: Discrepencies between SPSS and SAS

    When doing a Kaplan-Meier, there are a couple of options for estimating survival function past the last observed age (which may be a censored value). One option is to keep the function at its last value, another option is to set the function to 0, and another intermediate option could be to use an exponential curve to reduce the function for the value at last observed age down to 0.

    You talk about having a bigger sample size. With large data sets, assumptions are made about the location of values within the intervals (you calculate the survival function at endpoints of the intervals). One assumption that can be made is that all of the uncensored observations in an interval occur at the same value within that interval, say c_j. Rather than place all probability at the c_j values, usually you evaluate the distribution function at the given endpoints and then smooth the function by interpolation -- here there is a choice about what kind of interpolation -- between successive values. I suspect SPSS and SAS are using different methods for the interpolation. My source says that linear interpolation is usual, but it seems that would not make a smooth function that people often like to make nowadays.

  9. The Following User Says Thank You to Mean Joe For This Useful Post:

    Dason (08-02-2012)

  10. #9
    Points: 25, Level: 1
    Level completed: 49%, Points required for next Level: 25

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Discrepencies between SPSS and SAS


    Thank you everyone, especially the last reply. Very helpful.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats