Dear Statalist,

I'm doing Cox regression with a categorical variable.

To obtain the count within each category after -stcox- I use

Code:
tab indepvar if e(sample)
Is there a way to make that code work on imputed datasets? I tried to use the same code after doing mi estimate: stcox, but it returned the following error:

Code:
tab indepvar if e(sample)
no observations
Best regards,
Sigrid