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

From   Roger Newson <>
To   "" <>
Subject   st: New version of -xcollapse- on SSC
Date   Wed, 5 May 2010 16:00:58 +0100

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.

The -xcollapse- package is an extended version of -collapse-, and is described as below on my website. The new version has been updated to Stata Version 10 (with a .sthlp help file), and now compresses the generated output variables to the lowest storage type possible without loss of precision. It also has a -float- option, specifying that generated output variables of type -double- will be recast to type -float-, even if this causes loss of precision.

Users of Stata Versions 9, 8 or 7 can still download the Stata 8 or 7 versions of -xcollapse- from my website by typing in Stata

net from "";

and selecting the Stata version required.

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 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: 05may2010
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

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