Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Descriptive statistics after regression: multiple observations per id

    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:

    Click image for larger version

Name:	post.png
Views:	1
Size:	63.3 KB
ID:	1615203

Working...
X