Tabulating survival statistics ------------------------------ by Wim L. J. van Putten, Daniel den Hoed Cancer Center, The Netherlands ^survtab^ timevar deadvar [^, by(^groupvar^)^] ^at(^t1[,t2[,t3...]]^)^ generates a survival table in a tabular format. ^survtab.ado^ is based on ^survcurv.ado^, and makes use of ^_crcsrvc.ado^, but with a slight modification to this program. The new version is called ^_crcsrv2.ado^. The modification consists of the addition of a new variable ^_atrisk^, the number at risk at time ^t^#. Example: ^. d surv dood hazrt^ 45. surv int %5.0f Survival time in days 64. dood int %8.0g Death indicator 76. hazrt float %9.0g hazrt Risk group * RT ^. tab hazrt dood^ Risk group| Death indicator * RT| 0 1 | Total -----------+----------------------+---------- Low RT- | 61 13 | 74 Low RT+ | 72 15 | 87 Med RT- | 16 10 | 26 Med RT+ | 75 19 | 94 High RT- | 8 11 | 19 High RT+ | 34 25 | 59 -----------+----------------------+---------- Total| 266 93 | 359 ^. survtab surv dood ,by(hazrt) at(1827,3653)^ hazrt _TIME _atrisk _surv _stds 31. Low RT- 1827 43 0.857 0.042 57. Low RT- 3653 17 0.767 0.064 103. Low RT+ 1827 58 0.880 0.036 144. Low RT+ 3653 17 0.771 0.056 174. Med RT- 1827 13 0.692 0.091 183. Med RT- 3653 4 0.639 0.098 224. Med RT+ 1827 57 0.834 0.039 268. Med RT+ 3653 13 0.788 0.049 293. High RT- 1827 7 0.461 0.118 298. High RT- 3653 2 0.395 0.118 329. High RT+ 1827 30 0.643 0.062 352. High RT+ 3653 7 0.508 0.081 422. . 1827 96 0.768 0.035 479. . 3653 39 0.624 0.046 The column ^hazrt^ shows the classes of the groupvar; the column ^_TIME^ shows the time in days (1827=5 years, 3653=10 years); the column ^_atrisk^ shows the number still at risk just after ^_TIME^; the column ^_surv^ shows the survival probability at ^_TIME^ for the value of ^hazrt^; and the column ^_stds^ shows the corresponding standard deviation.