BookmarkSubscribeRSS Feed
eugenecs
Calcite | Level 5

I would be grateful if someone could help me with the code to find an overall p-value for heterogeneity of association by age of onset.

Our primary hypothesis test was heterogeneity test on a difference in the HR(hazard ratio) for one subgroup (age<45 years), the HR for another subgroup (age 45-55 years) and the HR for the third subgroup (55-65 years) as an ordinal statistical trend. Specifically, we assessed whether the magnitude of the subgroup-specific associations had an increasing or decreasing ordinal trend according to age. 

3 REPLIES 3
sbxkoenk
SAS Super FREQ

Hello @eugenecs ,

 

Can you explain why the HAZARDRATIO Statement in PROC PHREG is not helping you out here?

For a CLASS variable, a hazard ratio compares the hazards of two levels of the variable.

 

Thanks,

Koen

eugenecs
Calcite | Level 5

Thank you for your comments. Actually, I want to do a trend test to examine the trend in  hazard ratio  among the subgroup.

sbxkoenk
SAS Super FREQ

Hello @eugenecs ,

 

Have a look to this .pdf from SAS Documentation :

SAS/STAT® 13.1 User’s Guide
The PHREG Procedure

https://support.sas.com/documentation/onlinedoc/stat/131/phreg.pdf

and search for :

' A Simple Test of Trend in the Hazard Ratio'.

 

On page 5915, you bump into such a test 

which is searching for evidence of an increasing or decreasing trend over time in the hazard ratio

, but instead of << time >> you can use another factor.

 

Thanks,

Koen

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1605 views
  • 0 likes
  • 2 in conversation