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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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
  • 3 replies
  • 1027 views
  • 0 likes
  • 2 in conversation