Hi
I have a pretty basic problem, but I am a new user of SAS, and I am stuck.
I am applying proc lifetest to produce graphs. My problem is that the plots produces lines with circles. I can not find any describtions, informing me about what these circles illustrates, not can I figure out a command to remove them from my graph.
I am using SAS version 9.4.
Hope anyone has some input. Thanks 🙂
I assume you are seeing graphs like in this documentation example:
If you are referring to the plots, the "circles" are markers that indicate the observations in your data set. The lines are drawn to show trends and relationships.
You can use ODS OUTPUT to save the data that underlies a graph and then use PROC SGPLOT to create a new graph. The technique is described in the article "How to get data values out of ODS graphics":
ods output NegLogSurvivalPlot=SurvPlot;
proc lifetest data=Exposed plots=(survival(atrisk) logsurv);
time Days*Status(0);
strata Treatment;
run;
proc sgplot data=SurvPlot;
series x=Time y=__Log_Survival__ / group=Stratum;
run;
Post your code and a copy of the image please.
I assume you are seeing graphs like in this documentation example:
If you are referring to the plots, the "circles" are markers that indicate the observations in your data set. The lines are drawn to show trends and relationships.
You can use ODS OUTPUT to save the data that underlies a graph and then use PROC SGPLOT to create a new graph. The technique is described in the article "How to get data values out of ODS graphics":
ods output NegLogSurvivalPlot=SurvPlot;
proc lifetest data=Exposed plots=(survival(atrisk) logsurv);
time Days*Status(0);
strata Treatment;
run;
proc sgplot data=SurvPlot;
series x=Time y=__Log_Survival__ / group=Stratum;
run;
It worked! Thanks for the fast answer Rick 🙂
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.