BookmarkSubscribeRSS Feed
openatom
Calcite | Level 5

I'm using SAS 9.4.  I ran a proc phreg with a continuous predictor (bp) and I am trying to get a percentile for this HR.  It looks like phreg has a "percent=" option, but I can't figure out how to use it correctly.  Could anyone advise?  Here is the basic phreg code I'm working with:

 

  proc phreg data=new;

  model date*censor(0)=bp;

  run;

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I am trying to get a percentile for this HR

 

What does HR mean? How does this relate to PROC PHREG? Are you trying to run PROC PHREG on percentiles? Or do you want to determine a percentile of something in the output of PROC PHREG?

--
Paige Miller
openatom
Calcite | Level 5

HR= hazard ratio

 

I would like the percentile of a hazard ratio for a continuous variable (blood pressure).

 

My understanding is that when I run a proc phreg if HR=1.06, with a continuous predictor, the HR tells me for every one unit increase in that variable (blood pressure), the HR increases by 1.06.  I need a way to find percentiles of this HR since it is a continuous variable.

PaigeMiller
Diamond | Level 26

I'm not an expert on PROC PHREG, but I know how to find percentiles. Nevertheless, it's not clear to me what set of numbers you want percentiles for. If you have only the number 1.06, there's no such thing as a percentile of a single number. So I am asking for even more details on what output you get from PROC PHREG that could produce percentiles; it can't be a single number; it has to be  a collection of numbers, explain further.

 
When you say "percentiles", do you really mean "confidence interval"?
 
--
Paige Miller

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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