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
Export Value Labels to Excel/CSVHow do i export value labels for each variables that i have to excel or csv -----------------------…
"too few variables" foreachHi, I'd like to recode (reverse) a list of 24 dichotomous variables (0/1). The following should ill…
use observation as a varlistHi everyone, I am currently struggling with something that I think is easy but i really couldn't fig…
How to interpret variance on different levels in melogitDear all, I am analysing what are the determinants for the adoption of bonus compensation for a firm…
Negative persistence parameterHi, I am estimating a simple OLS persistence model where I regress f.x on x. x is a variable that t…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation and stsum by groups
Post a Comment