Thanks to Kit Baum, a new package stcomlist is now available from SSC.
stcomlist is intended to be a "competing risks" version of the official sts list command. It uses the SSC program stcompet to calculate cumulative incidence functions (CIFs) for each competing outcome, optionally in groups, and reports the CIFs along with confidence intervals.
Example:
stcomlist can be installed from SSC using:
stcomlist is intended to be a "competing risks" version of the official sts list command. It uses the SSC program stcompet to calculate cumulative incidence functions (CIFs) for each competing outcome, optionally in groups, and reports the CIFs along with confidence intervals.
Example:
Code:
. webuse hypoxia
(Hypoxia study)
. stset dftime, failure(failtype==1)
failure event: failtype == 1
obs. time interval: (0, dftime]
exit on or before: failure
------------------------------------------------------------------------------
109 total observations
0 exclusions
------------------------------------------------------------------------------
109 observations remaining, representing
33 failures in single-record/single-failure data
353.129 total analysis time at risk and under observation
at risk from t = 0
earliest observed entry t = 0
last observed exit t = 8.454
. stcomlist, compet1(2) at(1 5) by(pelvicln)
failure: failtype == 1
competing failures: failtype == 2
Time CIF SE [95% Conf. Int.]
--------------------------------------------------
pelvicln=E
1 0.1304 0.0702 0.0327 0.2972
5 0.2609 0.0916 0.1062 0.4469
pelvicln=N
1 0.1256 0.0415 0.0587 0.2191
5 0.2217 0.0523 0.1290 0.3302
pelvicln=Y
1 0.4091 0.1048 0.2085 0.6007
5 0.5568 0.1079 0.3261 0.7364
failure: failtype == 2
competing failures: failtype == 1
Time CIF SE [95% Conf. Int.]
--------------------------------------------------
pelvicln=E
1 0.0435 0.0425 0.0031 0.1824
5 0.2174 0.0860 0.0791 0.3993
pelvicln=N
1 0.0312 0.0217 0.0059 0.0965
5 0.1582 0.0496 0.0763 0.2667
pelvicln=Y
1 0.1364 0.0732 0.0341 0.3087
5 0.1364 0.0732 0.0341 0.3087
stcomlist can be installed from SSC using:
Code:
ssc install stcomlist

Comment