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 -xcollapse- on SSC

From   "Roger B. Newson" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: New version of -xcollapse- on SSC
Date   Thu, 22 Mar 2012 20:07:10 +0000

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

The -xcollapse- package is described as below on my website, and is an extended version of -collapse-. The new version has the same program as before, but the online help has been abbreviated in order to refer to the online help for -collapse- instead of duplicating it. This is an improvement, as -collapse- has progressively gained capabilities from version to version of Stata, and these capabilities are automatically inherited by -xcollapse-, even though -xcollapse- itself is only Stata Version 10. Users of Stata 10, 11 or 12+ will therefore be referred to the capabilities of their own -collapse- versions, instead of reading a description originally cut and pasted from the Stata Version 8 -collapse-.

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
Email: [email protected]
Web page:
Departmental Web page:

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

package xcollapse from

      xcollapse: Make data set of summary statistics on disk or in memory

xcollapse is an extended version of collapse, which creates a data set with one observation per combination of values of a list of variables in the existing data set and new variables containing summary statistics of other variables (eg means) in each combination. xcollapse allows the user to choose the destination of the output data set, which may either be listed to the Stata log, or saved to a disk file, or written to the memory (overwriting any
      existing data set).

      Author: Roger Newson
      Distribution-Date: 22march2012
      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