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 🙂
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.