Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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