@JeffMeyers Thank you for this great macro. It works great when I use it for unadjusted plots. However, when I try to use it for adjusted curves I face problems. I use this command (which is almost exactly copied from the PharmaSUG 2017 Paper):
%newsurv_adj_direct(
/*Required Parameters*/
data=Glioma ,time=time_tf, cens=tf_12,
/*Class Variable Options*/
class=codelist,
/*Adjusting Factors*/
classcov=gender,
/*Line/Symbol Options*/
linesize=2pt,symbolsize=10pt,color=black blue red green,
/*Axis Options*/
xdivisor=30.44,ylabel=Percent Alive,xlabel=Months,xmax=100,xincrement=20,
/*Output File Options*/
plotname=figure9);
I included this version of the macro: newsurv_05102022.sas
Do I need to include an additional macro for it to run or is there an error in my code?
... View more