BookmarkSubscribeRSS Feed
yuzheng20
Calcite | Level 5

proc surveyphreg data= data varmethod = TAYLOR;
strata SDMVSTRA;
cluster SDMVPSU;
weight weight6;
model PERMTH_int*dead(0) =CLASS4/ eventcode=1 rl;
run;

3 REPLIES 3
OsoGris
SAS Employee
I don't see an EVENTCODE option on the MODEL statement in PROC SURVEYPHREG.
PamG
Quartz | Level 8

@Rick_SAS I am also wondering if there is a way in SAS to implement competing risk for survey data?  I will be working on survey data and there doesn't seem to be much information online. 

OsoGris
SAS Employee

unfortunately, PROC SURVEYPHREG does not have the EVENTCODE= option (like PROC PHREG does) to enable a competing risks analysis.  You could try using PHREG with a WEIGHT statement; the parameter estimates would be the same but not the standard errors as from SURVEYPHREG. 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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