BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Medidata
Fluorite | Level 6

Hello,

I am an SAS layman user, a medical student with very limited use. I have been able to understand and make Kaplan plots for my data. Most of my data is concentrated between 0 to 60 months (five years) but there are some cases that extend to 200 months which makes my main data look small and unfocused. I have been trying to limit this to just 60 months. How should I code and proceed? I would love to have a very simple and layman's explanation since I have no proper coding experience.

I am using this code [proc lifetest data=WORK.IMPORT plots=survival (cl test atrisk(maxlen=13)=0 to 60 by 12);
time 'Survival months'n*Vitalstatus(0);
strata Stage;
run;]

This is the kind of plot I get.
SAS support.png

I want only 60 months of survival time. What addition should I add to the above code to limit it?

Thanking you in anticipation.

1 ACCEPTED SOLUTION

Accepted Solutions
OsoGris
SAS Employee
Try the MAXTIME=60 option on your PROC LIFETEST statement.

View solution in original post

2 REPLIES 2
OsoGris
SAS Employee
Try the MAXTIME=60 option on your PROC LIFETEST statement.
Medidata
Fluorite | Level 6
Thank you so much. It worked.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 871 views
  • 2 likes
  • 2 in conversation