BookmarkSubscribeRSS Feed
aboli
Calcite | Level 5

Is there any option which we can give to get the correct censored summary while using weighted statement in proc life test?

4 REPLIES 4
ballardw
Super User

It usually helps to show the code you are currently using. That way we can tell if any of your current options are conflicting with what you want to create. Copy you code and paste into a text or code box opened with the </> or "running man" icons above the message window.

 

For example, having your code would tell me immediately if this from the online documentation of the Weight statement for Proc Lifetest applies:

You can use the WEIGHT statement only for the Kaplan-Meier curves. Other methods of estimating the survival curves using weights are not available.

 

aboli
Calcite | Level 5

I am using below code. Output which got from below code sounds correct except censored summary output 

 


ods output CensoredSummary = CENSUM
Quartiles=QUARTS
means = _mean
ProductLimitEstimates = KMEST1;

proc lifetest data=tte_os /*timelist= 3 , 6, 9, 12, 15, 21*/
outsurv=surv2 conftype=loglog /*reduceout*/ ;
time aval*CNSR(1);
strata trtn;
weight imt;
run;

Season
Lapis Lazuli | Level 10
I cannot see anything wrong with this code. What is your concern of the output?
data_null__
Jade | Level 19

Perhaps you are confusing the WEIGHT statement with the FREQ statement.

 

The FREQ statement identifies a variable that contains the frequency of occurrence of each observation. 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 4 replies
  • 787 views
  • 0 likes
  • 4 in conversation