Dear Users,
I would like to estimate median survival time for a survival model in Stata15. My file has one line per record and 1 failure time. I was using the following approach:
stset surv, id(patid) failure(fail==1) scale(30.4)
sum _t, d
bysort sex: sum _t, d
A colleague has now mentioned that I should be able to use -stci- to achieve the same
stci, by(sex)
The numbers are not the same using -stci- so I am wondering if my original approach is wrong, although I am not fully sure how -stci- is estimating median time.
Thanks for your help,
Laura
Related Posts with median survival time using stci
Requeasting for the exact command to simpson diversifcation index in stataHello, Dear all, I am new for the stata software. Would you please show me the appropriate command t…
Do Not Rank If ConditionHello, In the sample attached I have ranked var: tfr_lr in var: rank_tfr_lr I would like var: tfr_l…
Marginsplot: Changing markers by categorical value along x-axisI am summarizing percentage estimates across cities graphically, using margins and marginsplot. Howe…
dyndoc and css formatingHi all. I run the -dyndoc- command in stata15. I include in my code header and css codes. When I s…
behavior of saved outputDear lister I am using Stata17 I want to save the output from 2 table commands in 2 matrixes. Afte…
Subscribe to:
Post Comments (Atom)
0 Response to median survival time using stci
Post a Comment