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?
Thanks!
http://www.cran.r-project.org/web/packages/cmprsk/cmprsk.pdf
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
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).
I Googled
fine gray prportional hazards "sas"
and came up with a number of macros including this one
http://www.sciencedirect.com/science/article/pii/S0169260710001793
Unfortunately those macros are based on the Cox proportional hazards model, so they're not what I'm looking for. Thanks anyway!
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.
Fine-Gray modeling has been added as an option in PROC PHREG in SAS/Stat 13.1! Hooray!!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.