Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Roger Newson <r.newson@imperial.ac.uk> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: New version of -xcollapse- on SSC |
Date | Wed, 5 May 2010 16:00:58 +0100 |
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 "http://www.imperial.ac.uk/nhli/r.newson/"; and selecting the Stata version required. 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: r.newson@imperial.ac.uk 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 xcollapse from http://www.imperial.ac.uk/nhli/r.newson/stata10 ------------------------------------------------------------------------------------ TITLE xcollapse: Make data set of summary statistics on disk or in memory DESCRIPTION/AUTHOR(S)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) xcollapse.ado xcollapse.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/