Thanks as always to Kit Baum, a new package kmest is now availble for download from SSC. In Stata, use the ssc command to do this.

The kmest package is described as below on my website, and estimates a vector of Kaplan-Meier survival probablities (without covariance estimates) as estimation results for input to the bootstrap or jackknife prefix. This is especially useful if the user wants to estimate Kaplan-Meier survival probabilities for clustered and/or sampling-probability-weighted sampling schemes. StataCorp did not seem to have written a command that did this. However, I would like to thank them loads for putting into place the foundations for other people to do so.

Best wishes

Roger

--------------------------------------------------------------------------------
package kmest from http://www.rogernewsonresources.org.uk/stata10
--------------------------------------------------------------------------------

TITLE
kmest: Compute Kaplan-Meier survival probabilities as estimation results

DESCRIPTION/AUTHOR(S)
kmest is intended for use in a survival time dataset set up by stset.
It computes Kaplan-Meier survival probabilities (as computed by sts
generate) for a list of times (sorted in ascending order), and saves
them as estimation results, without a variance matrix. kmest is
intended for use with the bootstrap prefix, or possibly with the
jackknife prefix, to create confidence intervals for the Kaplan-Meier
survival probabilities, possibly allowing for clustering and
sampling-probability weighting.

Author: Roger Newson
Distribution-Date: 23january2020
Stata-Version: 10

INSTALLATION FILES (click here to install)
kmest.ado
kmest.sthlp
--------------------------------------------------------------------------------
(click here to return to the previous screen)