Hi everyone,
i have a dataset containing about 7000 observations, I am interested in a certain events (event), the incidence of which seems to increase with age. The increment is relatively slow at younger ages but increases more steeply with older age.
What I am trying to do is to find an optimal age cut off as a strata predicting the event of interest in survival analysis. Basically I am looking for the age at which the difference in hazards ratios is largest, of if you want the age cut off that separates the Kaplan Meier strata curves most.
Is there a way of doing this?
Thank you and appreciate your help.
Am
The brute force method would be something like:
data testData;
set myData;
do cutoffAge = 25 to 55 by 5;
strata = age > cutoffAge;
output;
end;
run;
proc sort data=testData; by cutoffAge strata; run;
proc lifetest data=testData ... ;
by cutOffAge;
strata strata;
...
ods output ... ; /* capture analysis statistics for each cutoff age*/
run;
You could then choose your prefered age cutoff. Note that any such searching method will likely create a bias in favor of your hypothesis.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.