Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: New -factext- and -senspec- packages on SSC

From   Roger Newson <>
Subject   st: New -factext- and -senspec- packages on SSC
Date   Thu, 17 Jun 2004 20:47:33 +0100

Hello All

Thanks to Kit Baum, there is now a new package -senspec-, and a new version of -factext-, available for download from SSC. In Stata, use the -ssc- command to describe and install these.

The -senspec- and -factext- packages are described as below on my website. -senspec- is a new package. The new version of -factext- fixes a rarely-encountered confusing warning message, which is now suppressed.

Best wishes


package senspec from

senspec: Sensitivity and specificity results saved in generated variables

senspec inputs a reference variable with two values and a quantitative
classification variable. It creates, as output, a set of new variables,
containing, in each observation, the numbers and/or rates of true positives,
true negatives, false positives and false negatives observed if the
classification variable is used to define a diagnostic test, with a threshold
equal to the value of the classification variable for that observation. The
reference variable indicates the true state of the observation, such as
diseased and non-diseased, or normal and abnormal. The rating or outcome of
the diagnostic test is recorded in the classification variable. senspec is
similar to roctab, but produces output variables instead of plots and
listings, so that users can create plots and listings in their own chosen

Author: Roger Newson
Distribution-Date: 24may2004
Stata-Version: 8

INSTALLATION FILES (click here to install)
(click here to return to the previous screen)

package factext from

factext: Extract factor values from a label variable created by parmest

factext is used to extract factors (categorical variables) from a
label variable in an output data set created by the parmest package.
The parmest package creates a data set with 1 obs per estimated parameter
and data on the parameter estimates, confidence limits, P-values, and
(optionally) also a variable named label, containing the variable label for
the X-variable corresponding to the parameter. If the X-variable is a dummy
variable created by xi, tabulate or John Hendrickx's desmat package, then the
value of label will be of the form "varname==value", where varname is a
variable name and value is a numeric or string value. factext uses this
information to create new factors (categorical variables) with the specified
varnames and values. These new variables can then be used to produce tables
and/or plots. factext can be used together with the descsave package, also
downloadable from SSC or from this website.

Author: Roger Newson
Distribution-Date: 26may2004
Stata-Version: 7

INSTALLATION FILES (click here to install)
(click here to return to the previous screen)

Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605

Opinions expressed are those of the author, not the institution.

* For searches and help try:

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