From the help desk: Kaplan-Meier plots with stsatrisk
stsatrisk is a wrapper for sts graph that adds a table to a survival plot with at-risk information, making it easy to create graphs that follow the list of recommendations given by Pocock et al. (2002) for KaplanÐMeier plots. We use stsatrisk to create plots in the desired format with the desired information. Copyright 2004 by StataCorp LP.