Hello,
I have survival analysis data where I have imputed some missing values with PROC MI/PROC MIANALYZE. To produce a KM plot based on the imputed data, I am using the MACRO %KM_TTE_MIANALYZE. The macro works however it produces labels TREATMENT 1,0 and x and y axis labels I do not want for publication. I have tried to use the %ProvideSurvivalMacros that I use to customize standard KM plots produced using proc Lifetest but it does not work. In the macro I do not even see the works axis or label. I am wondering if anyone has any advice or could recommend a different MACRO or procedure to produce KM plots for multiple imputed dataset where labels and axiss can be edited.
thank you
At a guess you need to find the definition code for the PLOTSTEP macro called towards the end of the code:
%if "&plot"="yes" %then %do; %plotstep(plotdata=_tmc_allsp, xvar=timelist, yvar=Survival_comb, by=%str(&by &strata), trtvar=&trtvar, outfname=&plotfname, outpath=&plotpath); %end;
The name Plotstep coupled with the condition makes me think that contains the actual plot code. Since the macro appears to use a data set created for plotting the plot may well not involve Proc Lifetest at all. So the %KM macros may not affect other code. Or Plotstep has it's own calls to the %KM macro variables that would override anything set prior the execution of the Plotstep macro.
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.