Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: New version of -xrewide- on SSC

From   "Roger B. Newson" <>
To   "" <>
Subject   st: New version of -xrewide- on SSC
Date   Tue, 13 Nov 2012 11:25:16 +0000

Thanks as always to Kit Baum, a new version of the -xrewide- package is now available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupgate- if you already have an old version of -xrewide-.

The -xrewide- package is described as below on my website. The new version adds a new module -xrelong-, which is an extended version of -reshape long-. -xrelong- has the additional option -jlabel(name)-, allowing the user to assign an existing value label to the generated -j()- variable. This can be useful, if the existing value label was generated using the -varlabdef- package, which you can also download from SSC, and the user intends to give the generated -j()- variable a value label containing the variable labels (or variable characteristics) of the input variables to be reshaped.

Best wishes


package xrewide from

      xrewide: Extended versions of reshape wide and reshape long

      The xrewide package contains 2 commands, xrewide and xrelong.
      The xrewide commmand 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.  The xrelong commmand is an extended version
      of reshape long, with the option of assigning an existing value
      label to the generated variable specified by the j() option.

      Author: Roger Newson
      Distribution-Date: 07november2012
      Stata-Version: 10

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

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.
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index