Programming the statistical procedures from SAS

How do I get Hazard Ratio but not using PROC PHREG

Reply
Frequent Learner
Posts: 1

How do I get Hazard Ratio but not using PROC PHREG

Hi All.

I am conducting a survival analysis on a typical clinical dataset in sas studio: Treatment/Placebo; Event/Censored. I am going to use cox model to get a hazard ratio and I know how to do that with PROC PHREG. I am wondering if thats the only way to do it. If it is, how do people validate the value? (From my opinion, validation means different codes lead to same result)

Super User
Posts: 19,822

Re: How do I get Hazard Ratio but not using PROC PHREG

Posted in reply to littleSAScat

littleSAScat wrote:

Hi All.

I am conducting a survival analysis on a typical clinical dataset in sas studio: Treatment/Placebo; Event/Censored. I am going to use cox model to get a hazard ratio and I know how to do that with PROC PHREG. I am wondering if thats the only way to do it. If it is, how do people validate the value? (From my opinion, validation means different codes lead to same result)

 

 

 

I think you're going to need to explain in further detail what you're looking for.

 

Typically I wouldn't validate the results for every single procedure I ran. But if it was my first time doing survival analysis I'd find some sample examples online or in the documentation and ensure I could replicate the results and that I understood the information. And I'm not sure I would expect 'different codes lead to the same result'. The same result should occur with the same data, but if I've changed my code and therefore my model, why would I expect the same results.

SAS Super FREQ
Posts: 3,753

Re: How do I get Hazard Ratio but not using PROC PHREG

[ Edited ]
Posted in reply to littleSAScat

researchers can use the SAS/IML language to validate or extend the results of SAS procedures. There is a 1994 paper by Ying So that shows how to formulate censored data problems in PROC IML. The appendix has a complete program that you can adapt to your needs.

 

See also the SAS/IML documentation example "Survival Curve for Interval Censored Data."

Ask a Question
Discussion stats
  • 2 replies
  • 153 views
  • 1 like
  • 3 in conversation