KMSENSPEC: Stata module to estimate sensitivity, specificity and predictive values from Kaplan-Meier curves
Roger Newson
Statistical Software Components from Boston College Department of Economics
Abstract:
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.
Language: Stata
Requires: Stata version 16 and kmest from SSC (q.v.)
Keywords: Kaplan-Meier; sensitivity; specificity (search for similar items in EconPapers)
Date: 2025-08-07
Note: This module should be installed from within Stata by typing "ssc install kmsenspec". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/k/kmsenspec.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/k/kmsenspec.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/k/kmsenspec_p.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/k/kmsenspec.pdf documentation (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459495
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().