Tnanks as always to Kit Baum, a new version of the kmest package is now available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have an old version of kmest.
The kmest package is described as below on my website. The new version checks if the current dataset is stset, and (if so) checks that the weights that are stset are fweight for frequency weights or iweight for importance weights, and fails informatively otherwise.
Best wishes
Roger
-----------------------------------------------------------------------------------------------------------------------------------------------------------
package kmest from https://www.rogernewsonresources.org.uk/stata16
-----------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
kmest: Compute Kaplan-Meier survival probabilities and/or percentiles 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/or
Kaplan-meier percentiles for a list of percents (srted 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 and/or percentiles, possibly
allowing for clustering and/or sampling-probability weighting.
Alternatively, kmest can be used with the SSC packages parmest and
esetran to compute Greenwood confidence intervals, or delta-Greenwood
confidence intervals using a variety of Normalizing transforms.
Author: Roger Newson
Distribution-Date: 24 July 2025
Stata-Version: 16
INSTALLATION FILES (click here to install)
kmest.ado
kmest_p.ado
kmest.sthlp
-----------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
The kmest package is described as below on my website. The new version checks if the current dataset is stset, and (if so) checks that the weights that are stset are fweight for frequency weights or iweight for importance weights, and fails informatively otherwise.
Best wishes
Roger
-----------------------------------------------------------------------------------------------------------------------------------------------------------
package kmest from https://www.rogernewsonresources.org.uk/stata16
-----------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
kmest: Compute Kaplan-Meier survival probabilities and/or percentiles 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/or
Kaplan-meier percentiles for a list of percents (srted 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 and/or percentiles, possibly
allowing for clustering and/or sampling-probability weighting.
Alternatively, kmest can be used with the SSC packages parmest and
esetran to compute Greenwood confidence intervals, or delta-Greenwood
confidence intervals using a variety of Normalizing transforms.
Author: Roger Newson
Distribution-Date: 24 July 2025
Stata-Version: 16
INSTALLATION FILES (click here to install)
kmest.ado
kmest_p.ado
kmest.sthlp
-----------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
