BookmarkSubscribeRSS Feed
saghaee
Calcite | Level 5

I have been analyzing data that contains right,left, and interval censoring using the following code in SAS:

 

proc lifereg data=&data; class &class; model (&out._age_time1,&out._age_time2) = &vars /dist=weibull; run;

 

I am now interested in clustering by one or two demographic variables. How can I achieve is?

2 REPLIES 2
SteveDenham
Jade | Level 19

Perhaps the easiest would be to consider the demographic variables as fixed covariates.  Include them in a CLASS statement and in the MODEL statement.

 

If you wish to treat the demographic variables as random effects, you will probably have to try coding in NLMIXED to handle both the distribution and censoring issues. GENMOD and GLIMMIX do not correctly address censoring.

 

SteveDenham

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

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