Thanks yet again to Kit Baum, a new version of the kmest package (superseding last week's versions) 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 adds a new returned scalar result e(N_fail) containing the total number of failures in the estimation sample, and a new returned matrix result e(cumfail), a row vector with 1 column for each of the input list of times, containing the cumulative number of failures at or before each time. These returned results are re-returned by the bootstrap prefix, and can be stored in an output dataset (or resultsset) using the SSC package parmest.
Best wishes
Roger
-------------------------------------------------------------------------------------------------
package kmest from http://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.
Author: Roger Newson
Distribution-Date: 11march2020
Stata-Version: 16
INSTALLATION FILES (click here to install)
kmest.ado
kmest_p.ado
kmest.sthlp
-------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
Related Posts with New version of kmest for SSC
Problem with several weights from different waves for the same individualGood day, I am a final-year Economics student and I'm working on the thesis which involves economet…
Hausman vs Sargan-Hansen testI would like to test whether FE or RE model is more appropriate, however I suspect clustered errors …
Adding descriptive column in twoway scatter plotDear Stata Gurus, I created a graph as attached, with additional statistics/info in the graph by man…
Help using cond and collpase in a panel gravity modelDear all, I am a bit confused and I would be happy to get some suggestions. Here is the problem. I …
Generating observations for a variable in an extension of dataI have extended a data set that previously included quarterly data from 2001Q1 (represented as eg yq…
Subscribe to:
Post Comments (Atom)
0 Response to New version of kmest for SSC
Post a Comment