Programming the statistical procedures from SAS

Fine-Gray proportional hazards models for competing risk

Reply
Contributor
Posts: 22

Fine-Gray proportional hazards models for competing risk

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

PROC Star
Posts: 7,417

Fine-Gray proportional hazards models for competing risk

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

Contributor
Posts: 22

Fine-Gray proportional hazards models for competing risk

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).

Trusted Advisor
Posts: 2,114

Fine-Gray proportional hazards models for competing risk

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

Contributor
Posts: 22

Fine-Gray proportional hazards models for competing risk

Unfortunately those macros are based on the Cox proportional hazards model, so they're not what I'm looking for.  Thanks anyway!

Occasional Contributor
Posts: 13

Re: Fine-Gray proportional hazards models for competing risk

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. 

Contributor
Posts: 22

Re: Fine-Gray proportional hazards models for competing risk

Fine-Gray modeling has been added as an option in PROC PHREG in SAS/Stat 13.1!  Hooray!!

http://support.sas.com/documentation/cdl/en/statug/66859/HTML/default/viewer.htm#statug_phreg_syntax...

Ask a Question
Discussion stats
  • 6 replies
  • 1973 views
  • 0 likes
  • 4 in conversation