Stata命令为: stset time, failure(d) sts list sts graph 结果为 failure d:d≡1 analysis time t: time Be Net Survivor Std Time Total Fail Lost Function error [95% Conf. Int] 0 0.94740.05120.68120.9924 9876432 0.89470.0704 .64080.9726 0.84210.0837 0.58650.9462 2 0.73680.1010 0.47890.8810 0 0.73680.1010 0.47890.8810 0 0.68020.10800.42140.8421 0.68020.1080 0.42140.8421 0.68020.10800.42140.8421 0 0.61210.116 0.34970.7951 0.61210.1167 0.34970.7951 0.61210.11670.34970.7951 253 0.52470.12870.25700.7363 255 0.52470.12870.25700.7363 270 0.52470.1287 0.25700.7363 3 87654321 1001001000000 0.52470.1287 0.25700.7363 0.52470.12870.25700.7363 0.52470.12870.25700.7363 0.52470.12870.25700.7363Stata 命令为: stset time,failure(d) sts list sts graph 结果为: failure _d: d == 1 analysis time _t: time Beg. Net Survivor Std. Time Total Fail Lost Function Error [95% Conf. Int.] ------------------------------------------------------------------------------- 6 19 1 0 0.9474 0.0512 0.6812 0.9924 19 18 1 0 0.8947 0.0704 0.6408 0.9726 32 17 1 0 0.8421 0.0837 0.5865 0.9462 42 16 2 0 0.7368 0.1010 0.4789 0.8810 43 14 0 1 0.7368 0.1010 0.4789 0.8810 94 13 1 0 0.6802 0.1080 0.4214 0.8421 126 12 0 1 0.6802 0.1080 0.4214 0.8421 169 11 0 1 0.6802 0.1080 0.4214 0.8421 207 10 1 0 0.6121 0.1167 0.3497 0.7951 211 9 0 1 0.6121 0.1167 0.3497 0.7951 227 8 0 1 0.6121 0.1167 0.3497 0.7951 253 7 1 0 0.5247 0.1287 0.2570 0.7363 255 6 0 1 0.5247 0.1287 0.2570 0.7363 270 5 0 1 0.5247 0.1287 0.2570 0.7363 310 4 0 1 0.5247 0.1287 0.2570 0.7363 316 3 0 1 0.5247 0.1287 0.2570 0.7363 335 2 0 1 0.5247 0.1287 0.2570 0.7363 346 1 0 1 0.5247 0.1287 0.2570 0.7363 -------------------------------------------------------------------------------