BookmarkSubscribeRSS Feed
SXING
Calcite | Level 5

Hi,

I have patient-level clinical trial data, and wish to apply a risk prediction model (Cox PH model) to calculate the group level hazard ratio comparing an intervention with a placebo. How do I do this?

 

E.g. Risk prediction model: HR =e^(a + b1x + b2x....)

Need to apply to individual level data which compares the risk of events.

Then generate group-level hazard ratio.

 

2 REPLIES 2
pau13rown
Lapis Lazuli | Level 10

risk prediction is quite a different task to estimating the hazards ratio of the treatment effect. And the "patient-level data" is taken for granted when discussing a clinical trial. There are good examples online re how to fit cox regression models eg from sas' website: https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_phreg_sect0...

Reeza
Super User

You say Cox PH and Hazard Ratio, so I'm going to assume you want PROC PHREG. 

 

Here's a link to the documentation with an example:

 

http://documentation.sas.com/?docsetId=statug&docsetTarget=statug_phreg_examples03.htm&docsetVersion...

 

You can download the data (see top of example) and run the code. I would recommend you do that before trying it on your own data.

If you have categorical data make sure you look at the CLASS statement, and the PARAM and REF options. 

 

 

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 734 views
  • 0 likes
  • 3 in conversation