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.
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
Thank you for your comments. Actually, I want to do a trend test to examine the trend in hazard ratio among the subgroup.
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
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!
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.