Statalist


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

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


From   "Newson, Roger B" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: New versions of -sdecode- and -bmjcip- on SSC
Date   Wed, 28 Oct 2009 13:57:06 +0000

Thanks to Kit Baum, the very latest versions of the -sdecode- and -bmjcip- packages are now available for download from SSC. In Stata, use the -ssc- package to do this, or -adoupdate- if you already have an old version (or versions). As -bmjcip- calls -sdecode-, they should be downloaded together.

The -sdecode- and -bmjcip- packages are described as below on my website. The new versions both have a new option -xmlsub-, specifying that, in the decoded string output variables, the substrings "&", "<" and ">" will be replaced throughout with the XML entity references "&amp;", "&lt;" and "&gt;", respectively. This is useful if the decoded string output variables are intended for output (using the SSC package -listtab-) to a document in XHTML, or in other XML-based formats.

I would like to thank Adam Jacobs of Dianthus Medical Limited, London, UK for giving an inspirational talk at the 2009 Stata User Meeting on outputting Stata results to XML-based documents, and for drawing my attention to XML, which I have since been studying. The presentation can be found at
http://ideas.repec.org/p/boc/usug09/06.html

Best wishes

Roger


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
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected] 
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

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

--------------------------------------------------------------------------------
package sdecode from http://www.imperial.ac.uk/nhli/r.newson/stata11
--------------------------------------------------------------------------------

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

DESCRIPTION/AUTHOR(S)
      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
      variable.
      
      Author: Roger Newson
      Distribution-Date: 26october2009
      Stata-Version: 11

INSTALLATION FILES                                  (click here to install)
      sdecode.ado
      sdecode.sthlp
--------------------------------------------------------------------------------
(click here to return to the previous screen)

--------------------------------------------------------------------------------
package bmjcip from http://www.imperial.ac.uk/nhli/r.newson/stata11
--------------------------------------------------------------------------------

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

DESCRIPTION/AUTHOR(S)
      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: 26october2009
      Stata-Version: 11

INSTALLATION FILES                                  (click here to install)
      bmjcip.ado
      bmjcip.sthlp
--------------------------------------------------------------------------------
(click here to return to the previous screen)

*
*   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