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!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.