BookmarkSubscribeRSS Feed
CHELS
Obsidian | Level 7

My data run all the way to 50 months and what syntax should I use in proc lifetest such that I can get a log-rank test at 12 months and 24 months all at once?

 

Thanks!

 

2 REPLIES 2
ballardw
Super User

It is a good idea to provide example code of what you have now.

For one thing then we have things like data set and variable names.

Another is we may catch combinations of options that may not work with one or more possible solutions.

 

So please post an example of the code you are currently using one of those tests.

OsoGris
SAS Employee

The only way to get a log-rank test at 12 months and 24 months would be to subset your data to those time intervals.  That is not really something we would recommend.   I don't see any other way to get a log-rank test at a specific time instead of over all the data. 

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
  • 1208 views
  • 0 likes
  • 3 in conversation