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 version of -xrewide- on SSC

From   Roger Newson <>
To   "" <>
Subject   st: New version of -xrewide- on SSC
Date   Thu, 23 Dec 2010 16:12:36 +0000

Thanks to Kit Baum, a new version of the -xrewide- package is available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if you already have the old version of -xrewide- (distributed earlier this week).

The -xrewide- package, described as below on my website, is an extended version of -reshape wide-, mostly used with -listtab- (the successor to -listtex-) to produce tables in TeX, HTML, RTF and XML formats for output to documents. The new version adds 7 new labor-saving options. These are -xmlsub- (specifying the substitution of XML escape sequences in the variable characteristics used to store j-variable value labels), -pjvalue()-, -sjvalue()-, -pjlabel()- and -sjlabel()- (specifying prefix strings and suffix strings to be added to the variable characteristics used to store j-variable values and value labels), and -lxij()- and -lxji()- (specifying the names of macro variables to contain lists of the reshaped variables generated by -xrewide-, ordered by stub and j-value and by j-value and stub, respectively).

Best wishes (and have a nice Xmas, solstice or whatever users may celebrate at this time of year)


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 xrewide from

      xrewide: Extended version of reshape wide

      The xrewide package is an extended version of reshape wide.
      It saves results in variable characteristics, in addition to
      the dataset characteristics saved by reshape.  This is done
      using additional options for assigning the values and/or
      value labels of the j-variable to characteristics of the
      corresponding generated output variables.  These
      characteristics can be useful for defining column headings
      if the reshaped output dataset is output to a table using
      the listtab package, which can be downloaded from SSC.

      Author: Roger Newson
      Distribution-Date: 22december2010
      Stata-Version: 10

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