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?

3 REPLIES 3
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;

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. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 285 views
  • 0 likes
  • 3 in conversation