Dear Statalist users,

I am running a conditional risk set model (survival analysis), which entails having multiple observations per subject. I am building the descriptive statistics table for my paper, and I've been using the "estat sum" command in Stata IC 15.1. My intuition is that estat sum is calculating the sum of values for variable j and dividing it by total number of observations. This is NOT what I am looking for, as some subjects have more events than others. Is there any way to weight the calculation of mean values?

Many thanks.

My results look as follows:

Array