COLLAPSE2: Stata module to extend the collapse command
David Roodman ()
Statistical Software Components from Boston College Department of Economics
collapse2 is an extension of Stata's built-in collapse command, which converts the data in memory into a dataset of means, sums, medians, etc. It differs only in offering four additional "aggregation" operators: first, last, firstnm, and lastnm. These are useful, for example, if you want to create a cross-section data set from annual data, with initial population as a variable. You must first tsset your data to use these additional operators.
Requires: Stata version 8.0
Keywords: collapse; data manipulation (search for similar items in EconPapers)
Date: 2004-08-03, Revised 2004-08-04
Note: This module should be installed from within Stata by typing "ssc install collapse2". Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: Track citations by RSS feed
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/collapse2.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/collapse2.hlp help file (text/plain)
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s444801
Ordering information: This software item can be ordered from
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().