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
Heckman MLE and convergence issueHello Everyone, I am currently trying to estimate a gravity model for migrations and face a problem…
Computing predictive margins (mimrgns) for gsem with random effectsDear Statalisters, I would much appreciate your help with the following problem: I am not able to …
code for testing of multiple unknown structural breaksI´m using stata 16 with windows 10 OS. I want to identify multiple structural break of unknown date…
Bootstrapping or robust standard errors?Hi, I am new to stata and self-thought, so please have overlook if I have missunderstood anything. I…
Multiple Imputation on Panel Data - Error regarding variance-covariance matrix (EM did not converge)Dear All, I am tackling my thesis and i have panel data on around 150 companies between the years 2…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation and stsum by groups
Post a Comment