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
How to modify the results of the separate command?I would like to create variables per id group using the separate command following this example: C…
Convert correlation coefficients to fractional rankingsHi, The variable (acc) in my data is the Pearson correlation coefficients. However, I would like to…
How can I define a variable in terms of its relative position to another variable?Hi all, I will really appreciate your help in this matter. I would like to know how can I define a…
How to deal with endogeneity in fixed effect model?Hi, I am trying to estimate my model using fixed effect . but before that i did a unit root test and…
How to create a graphic for each country from panel database?Hi, I have a database on Panel data containing 143 countries and 22 years. Indeed, I would like to …
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation and stsum by groups
Post a Comment