Confidence bands for the survival function
AbstractIn several medical reports, the survival function is graphed along with the confidence intervals. The endpoints of the confidence intervals are usually connected to draw an area where the entire survival curve is contained with a given confidence. Confidence intervals are pointwise, i.e., they refer to the survival probability at a single time, but they are not valid for all the estimates of the entire survival curve. To this aim, the appropriate measure is confidence bands, not yet available within Stata. Two methods are usually employed to construct these confidence bands. The first was proposed by Hall and Wellner (1980), and the second was proposed by Nair (1984). The latter produces the so-called equal precision (EP) confidence bands. For both methods, log-minus-log and arcsine square-root transformed versions have been proposed. stcband is a new Stata command that allows the user to graph the survival function, together with the confidence bands constructed according to the Hall–Wellner and EP methodologies. The available options allow the user to a) specify the lower and upper limits of the time where the bands are to be estimated; b) choose the linear, log, or arcsine transformation; c) set the confidence level at 90, 95, or 99%; d) save the estimates; and e) manage the aspect of the graph. A further option allows the user to estimate the confidence bands of the cumulative hazard function. Using an example, I illustrate * the results obtained by using stcband and the corresponding R function; * the use of the command and the differences of the estimates of its confidence bands versus the usual pointwise confidence intervals. Finally, I will compare the coverage probabilities of the confidence bands estimated according to the above mentioned approaches by using simulated data with various survival distributions. I will perform simulations using Stata’s bootstrap command. The new command also has an accompanying help file in which the user is able to run an example, taken from the second edition of Klein and Moeschberger’s Survival Analysis Techniques for Censored and Truncated Data (p. 109–117), by clicking on the Viewer window. stcband is available for download from the SSC Archives.
Download InfoIf you experience problems downloading a file, check if you have the proper application to view it first. In case of further problems read the IDEAS help page. Note that these files are not on the IDEAS site. Please be patient as the files may be large.
Bibliographic InfoPaper provided by Stata Users Group in its series Italian Stata Users' Group Meetings 2008 with number 00.
Date of creation: 19 Jan 2009
Date of revision:
This paper has been announced in the following NEP Reports:
- NEP-ALL-2009-01-31 (All new papers)
You can help add them by filling out this form.
reading list or among the top items on IDEAS.Access and download statisticsgeneral information about how to correct material in RePEc.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christopher F Baum).
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
If references are entirely missing, you can add them using this form.
If the full references list an item that is present in RePEc, but the system did not link to it, you can help with this form.
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your profile, as there may be some citations waiting for confirmation.
Please note that corrections may take a couple of weeks to filter through the various RePEc services.