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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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