Hi,
I am using SAS9.4 to generate survival plots with SGPLOT and the dataset is from the output by the PHREG BASELINE statement.
I tried to use XAXISTABLE to generate a survival plot that contains the number of subjects at risk along the x-axis, however, I don't know how to use ODS OUTPUT statement from PHREG to save the ATRISK time into the dataset that I'm going to use in SGPLOT PROC.
So, my question is how to generate ATRISK data and save it to output dataset in SAS9.4.
Thanks in advance for your time!
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 25. 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.