BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ivy
Quartz | Level 8 Ivy
Quartz | Level 8

The weight statement in proc lifetest  can not output weighted ods table of  CENSOREDSUMMARY.

Any clue?

Thanks!

 

ods exclude PRODUCTLIMITESTIMATES;
ODS OUTPUT QUARTILES = SURVQTLE  CENSOREDSUMMARY = SURVNUM;
ods graphics on;
PROC LIFETEST DATA=_adtte METHOD=KM ALPHA = 0.05 plots=survival(atrisk);
strata trtpn;
TIME aval1*CNSR(1);
weight ipw;
RUN;
ods graphics off;

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

Hello,

 

Not sure if there's a "way around" here...

 

Documentation WEIGHT statement (LIFETEST procedure) says :

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

 

Documentation "CensoredSummary" ODS Table Name (LIFETEST procedure) says :

CensoredSummary Number of event and censored observations PROC METHOD=BRESLOW | FH | PL

 

I am / was looking at SAS 94 M7 documentation.

 

Regards,

Koen

View solution in original post

5 REPLIES 5
ballardw
Super User

From the documentation it appears that the CensoredSummary depends on Method used and your method is not one of them.

 

CensoredSummary

Number of event and censored observations

PROC LIFETEST METHOD=PL | B | FH

Ivy
Quartz | Level 8 Ivy
Quartz | Level 8
Thank you, ballardw.
PL = KM , we can get "CensoredSummary" , but the problem is the summary is not weighted.
Ksharp
Super User
Make a complete table ?

data new_adtte;
set _adtte;
do i=1 to ipw;
output;
end;

PROC LIFETEST DATA=new_adtte ...............
sbxkoenk
SAS Super FREQ

Hello,

 

Not sure if there's a "way around" here...

 

Documentation WEIGHT statement (LIFETEST procedure) says :

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

 

Documentation "CensoredSummary" ODS Table Name (LIFETEST procedure) says :

CensoredSummary Number of event and censored observations PROC METHOD=BRESLOW | FH | PL

 

I am / was looking at SAS 94 M7 documentation.

 

Regards,

Koen

Ivy
Quartz | Level 8 Ivy
Quartz | Level 8
Thank you very much.
SAS 9.4 dose not have that statement.
I am glad the newer version document this.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 5 replies
  • 2068 views
  • 2 likes
  • 4 in conversation