I have a dataset with multiple imputations in which I have performed Cox regression:
mi stset outdate, failure(death=1) (origin time baseline) scale(365.25)
mi estimate: stcox i.edu
I would like to display the number of deaths and survival time by educational groups.
I have tried:
stsum
stsum, by(education)
but when I include the by-option, the sum of cases and survival time from each educational group is not equal to the total number of cases and survival time displayed by stsum (because the command excludes those for which edu originally was missing, I assume).
I can find the total number of cases by:
mi estimate: total death, over(edu)
But how do I find the survival time in each educational group?
I apologize for not including my output, as my data is in a secured server. I hope someone might be able to help anyway.
Best regards,
Amalie
Related Posts with Multiple imputation and stsum by groups
Now how do I make a joint test (Post estimation) after using Mixed?Array Hello! So I want to see if there is any correlation between ZCREDTA and freq. I want a joint t…
Intersection of two matricesThis feels like a super basic question, but how do I find the intersection of two matrices in mata? …
Lag in Regression with Newey–West standard errorsPlease help resolve some confusion regarding newey (the command to run NW SE regression in Stata): …
Regression Discontinuity - RDDensity test (Cattaneo)Hello everyone, This is my first time using Statalist as well as first time trying to do anything w…
Destringing and Dropping.Hello, How would I go about telling stata to drop the observations of variable nace_r2, when the fi…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation and stsum by groups
Post a Comment