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
ivreghdfeHello all, i try to do an iv regression with fixed effetcs (industry and year) and want to cluster …
Do the regression for only one company each and saving them to an excel/doc (ASDOC)Hi everybody, I do have a panel dataset where every company has a unique ID (-company-) and their r…
merging multiple excel file from a folder using key variable household id and monthI have many excel files in a folder and each data file contains variable VDS_ID and SUR_MON_YR. I wa…
Mean of a variable by multiple variables in the same tableHi. In my data there are 20 variables (var1- var20) which are deciles created based on different fa…
causal effect in panel dataHi there, I am struggling to understand something relating to causal effects with panel data. I ha…
Subscribe to:
Post Comments (Atom)
0 Response to median survival time using stci
Post a Comment