Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: roctab sensitivity specificity for each cutpoint


From   "Jacob Wegelin" <[email protected]>
To   [email protected]
Subject   st: roctab sensitivity specificity for each cutpoint
Date   Sat, 10 Jan 2009 12:29:01 -0500

- roctab - with the detail option reports the sensitivity and
specificity values which one could use to create one's own ROC plot.
But it only spits these numbers out as text, not as a dataset. Am I
correct in thinking that, if I want a dataset with these values, "I'm
on my own" as they say, I will not be able to obtain them from roctab
or its sister functions?

One reason it would be nice to have these numbers in a dataset:

roccomp makes a nice plot, but the legend is limited: it uses the
variable names, not the variable labels. Suppose, for instance, that
our continuous predictor of "spontaneous survival" is MELD, but that
one has to

gen minusMELD=-MELD

to get a ROC curve that is above the reference line. Then the roccomp
plot has a funny label for the MELD ROC curve, and a clinician with
whom one collaborates will be confused.

If one had the actual sensitivity and specificity for each cutpoint,
then one could produce one's own program that, for instance, extracts
the variable labels, like this:

. local junk: variable label log_BILin

. di "`junk'"
log(Bilirubin level at admission)

and thereby produce a more accessible plot legend.

Of course it would be fairly straightforward to write a program that
computes the sensitivity and specificity for each cutpoint; I'm just
curious whether that would constitute "reinventing the wheel."

Thanks for any comments

Jacob A. Wegelin
Assistant Professor
Department of Biostatistics
Virginia Commonwealth University
730 East Broad Street Room 3006
P. O. Box 980032
Richmond VA 23298-0032
U.S.A.
E-mail: [email protected]
URL: http://www.people.vcu.edu/~jwegelin
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index