Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: New versions of -sdecode- and -bmjcip- on SSC

From   Roger Newson <>
To   "" <>
Subject   st: New versions of -sdecode- and -bmjcip- on SSC
Date   Wed, 05 Oct 2011 12:00:33 +0100

Thanks once again to Kit Baum, new versions of the -sdecode- and -bmjcip- packages are now downloadable from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if you already have old versions of -sdecode- and -bmjcip-.

The -sdecode- and -bmjcip- packages are described as below on my website. -sdecode- is a "super" version of -decode-, which also incorporates some features of -tostring- for decoding unlabelled numeric valuees. -bmjcip- is a fromt-end for -sdecode-, used specifically for decoding estimates, confidence limits and P-values. The new versions incorporate a new possible value of the -esub()- option, -esub(smclsuper)-, which formats unlabelled numeric values with exponents by converting the exponent to a SMCL superscript (currently available only in graphs and described under -help graph_text-). The -esub(smclsuper)- option is expected to be used occasionally by users who want to graph spline parameters using -sdecode- with the -bspline-, -parmest-, -factext-, -sencode- and -eclplot- packages, which you can also download from SSC, and which were demonstrated in my presentation at the 2011 UK Stata User Meeting. This presentation can be downloaded from

(thanks again to Kit Baum).

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

package sdecode from

sdecode: Decode a numeric variable to string, formatting unlabelled values

sdecode is an extended version of decode. It takes, as input, a numeric
      variable, and generates, as output, a string variable, with values
corresponding to value labels of the numeric variable for labelled values, and (optionally) formatted values of the numeric variable for unlabelled values. The output string values therefore appear as the numeric input
      values appear in output from the tabulate command. The output string
variable may replace the input numeric variable or be generated as a new

      Author: Roger Newson
      Distribution-Date: 02october2010
      Stata-Version: 11

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

package bmjcip from

      bmjcip: Format confidence intervals and P-values for medical journals

      bmjcip reformats a list of numeric variables, containing estimates
      and/or confidence limits and/or P-values, to string variables,
      containing the same values formatted for presentation in medical
      journals.  The new string variables replace the old numeric
      variables, and have the same names, variable labels, variable
      characteristics, and positions in the dataset.  bmjcip is usually
      used in output datasets (or resultssets) produced by the parmest
      package, and the reformatted string variables are usually later
      output using the listtab package, for input to Microsoft Word or
      other word processors.  It requires the sdecode package in order to
      work.  The sdecode, parmest and listtab packages can all be
      downloaded from SSC.

      Author: Roger Newson
      Distribution-Date: 02october2011
      Stata-Version: 11

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

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index