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: 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
  • 3 replies
  • 809 views
  • 0 likes
  • 3 in conversation