10-20-2011 03:11 PM
I frequently use the cmprsk package in R to generate Fine-Gray proportional hazards models, but since I normally program in SAS, it's irritating to have to export data out and then open R up and run the models, and then export results from R and import them into SAS so I can use the ODS facility to generate tables in the format I need. Does anyone know of a SAS macro that does the same thing the cmprsk package does?
10-20-2011 03:27 PM
I don't know if this one, or the other macros located on that site, do everything that you want, but should be worth a look: http://www.mrc-bsu.cam.ac.uk/Software/SAS_Macros/Gray.sas
10-20-2011 03:41 PM
Thanks, but unfortunately that only produces failure rates & the associated test comparing the failure curves. I'm looking for the proportional hazards model portion of the cmprsk package (the crr function).
10-20-2011 04:00 PM
fine gray prportional hazards "sas"
and came up with a number of macros including this one
10-21-2011 11:06 AM
Unfortunately those macros are based on the Cox proportional hazards model, so they're not what I'm looking for. Thanks anyway!
09-05-2012 10:36 AM
I am planning to work on the same problem by using SAS/IML to call the cmprsk package and then send the output data into Base SAS. One advantage of this would be that when the cmprsk package is updated, the updates should be easy to incorporate into SAS. Calling R routines is available in SAS 9.3 if you have the IML module.
04-17-2014 01:48 PM
Fine-Gray modeling has been added as an option in PROC PHREG in SAS/Stat 13.1! Hooray!!