BookmarkSubscribeRSS Feed
AniaB
Calcite | Level 5
Is there a way to calculate adjusted hazard curves for specific levels of a single variable which are adjusted for all other covariates in the model? Basically, I would like to plot hazard curves for my outcome for three different race/ethnicity groups, but there are a number of other covariates in the full model, all of which are categorical, that I would like these curves to be adjusted for. The SAS documentation for PROC PHREG only describes how to calculate hazard curves when values are specified for all of the covarites, and if no values are specified, then reference values are used by default. However, I don't want to show these curves for specific subgroups of my population; I'd like the curves to apply to the entire population, adjusted for these other variables. Is this possible?

Thanks in advance for your responses!
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
If you recode your categorical covariates into 0/1 numeric variables, then PHREG will set them to their mean in setting up the adjusted curves. I think that is what you are saying when you use the term 'entire population.'

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 ANOVA?

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.

Discussion stats
  • 1 reply
  • 1490 views
  • 0 likes
  • 2 in conversation