Thanks as always to Kit Baum, a new package kmsenspec is now available for download from SSC. In Stata, use the ssc command to do this.
The kmsenspec package is described as below on my website. It comes with a manual kmsenspec.pdf, distributed as an ancillary file, giving the methods and formulas in detail.
Best wishes
Roger
-----------------------------------------------------------------------------------------------------------------------------------------------------------
package kmsenspec from https://www.rogernewsonresources.org.uk/stata16
-----------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
kmsenspec: Estimate sensitivity, specificity and predictive values from Kaplan-Meier curves
DESCRIPTION/AUTHOR(S)
kmsenspec is intended for use in a survival time dataset set up by stset.
It inputs a binary variable indicating a positive test result, and
estimates positive and negative predictive values from Kaplan-Meier
survival probabilities at a time specified by the user in positive and
negative observations, and then estimates the sensitivity and specificity
of the test using the Bayes theorem, with delta-Greenwood variances
estimated from the Greenwood standard errors of the positive and negative
predictive values. The estimation results are estimates of the
sensitivity, specificity, negative predictive power, and positive
predictive power, with a covariance matrix for the untransformed
estimates. Alternatively, kmsenspec can be used with the SSC packages
parmest and esetran to compute delta-Greenwood confidence intervals using
a variety of Normalizing transforms. The kmsenspec package uses the SSC
package kmest, which must be installed in order for kmsenspec to work.
Author: Roger Newson
Distribution-Date: 07 August 2025
Stata-Version: 16
INSTALLATION FILES (click here to install)
kmsenspec.ado
kmsenspec_p.ado
kmsenspec.sthlp
ANCILLARY FILES (click here to get)
kmsenspec.pdf
-----------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
The kmsenspec package is described as below on my website. It comes with a manual kmsenspec.pdf, distributed as an ancillary file, giving the methods and formulas in detail.
Best wishes
Roger
-----------------------------------------------------------------------------------------------------------------------------------------------------------
package kmsenspec from https://www.rogernewsonresources.org.uk/stata16
-----------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
kmsenspec: Estimate sensitivity, specificity and predictive values from Kaplan-Meier curves
DESCRIPTION/AUTHOR(S)
kmsenspec is intended for use in a survival time dataset set up by stset.
It inputs a binary variable indicating a positive test result, and
estimates positive and negative predictive values from Kaplan-Meier
survival probabilities at a time specified by the user in positive and
negative observations, and then estimates the sensitivity and specificity
of the test using the Bayes theorem, with delta-Greenwood variances
estimated from the Greenwood standard errors of the positive and negative
predictive values. The estimation results are estimates of the
sensitivity, specificity, negative predictive power, and positive
predictive power, with a covariance matrix for the untransformed
estimates. Alternatively, kmsenspec can be used with the SSC packages
parmest and esetran to compute delta-Greenwood confidence intervals using
a variety of Normalizing transforms. The kmsenspec package uses the SSC
package kmest, which must be installed in order for kmsenspec to work.
Author: Roger Newson
Distribution-Date: 07 August 2025
Stata-Version: 16
INSTALLATION FILES (click here to install)
kmsenspec.ado
kmsenspec_p.ado
kmsenspec.sthlp
ANCILLARY FILES (click here to get)
kmsenspec.pdf
-----------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
Comment