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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1741 views
  • 2 likes
  • 2 in conversation