Economics at your fingertips  

COLLAPSE2: Stata module to extend the collapse command

David Roodman ()

Statistical Software Components from Boston College Department of Economics

Abstract: 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.

Language: Stata
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) program code (text/plain) help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link:

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 ().

Page updated 2019-03-17
Handle: RePEc:boc:bocode:s444801