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

Hello,

 

The assess statement in proc phreg can be used to test proportional hazards assumption in a cox regression model like in model A. But, how do you assess proportionality of the explanatory variables (both categorical) in model B which is a recurrent event model?

 

Any reference with sample code/example is appreciated.

 

/*Model A*/
proc phreg data=test;
class trt(ref="A") strata(ref="B");
model time*status(0 2) = trt strata / risklimits ties=exact type3(score);
hazardratio trt / cl=pl diff=ref;
assess ph resample;
run;

/*Model B - Recurrent Event Model*/
proc phreg data=test2 covs(aggregate);
class trt(ref="A") strata(ref="B");
model (tstart, tstop)*status(0 2) = trt strata /  risklimits ties=exact type3(score);
hazardratio trt / cl=pl diff=ref;
baseline covariates=covds out=out cmf=_all_ / nomean;
id subjid;
run;





1 ACCEPTED SOLUTION

Accepted Solutions
Mike_N
SAS Employee

I don't think there is a built-in way to get model diagnostics for the proportional means model. As you noted, the ASSESS statement is used to examine proportional hazards, not proportional means/rates. The LWYY paper (Semiparametric Regression for the Mean and Rate Functions of Recurrent Events | Journal of the Royal...) does provide a section that specifies how to carry out model checks based on residuals, but those methods are not implemented in SAS (to my knowledge).

 

The process is similar to that implemented in the ASSESS statement for proportional hazards models. You would need to use the OUTPUT statement from PROC PHREG to store the martingale residuals and then use those in the model-checking methods described in LWYY.  

View solution in original post

4 REPLIES 4
Mike_N
SAS Employee

To begin, have a look at this page: SAS Help Center: Analysis of Multivariate Failure Time Data . Which model do you intend to fit?

kc
Quartz | Level 8 kc
Quartz | Level 8

The code I have provided in model B above corresponds to fitting a proportional rates/mean model using Lin et al. 2000, abbreviated as LWYY model.

Mike_N
SAS Employee

I don't think there is a built-in way to get model diagnostics for the proportional means model. As you noted, the ASSESS statement is used to examine proportional hazards, not proportional means/rates. The LWYY paper (Semiparametric Regression for the Mean and Rate Functions of Recurrent Events | Journal of the Royal...) does provide a section that specifies how to carry out model checks based on residuals, but those methods are not implemented in SAS (to my knowledge).

 

The process is similar to that implemented in the ASSESS statement for proportional hazards models. You would need to use the OUTPUT statement from PROC PHREG to store the martingale residuals and then use those in the model-checking methods described in LWYY.  

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