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?
Moved to statistics community.
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
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.
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.