Home  >>  Archives  >>  Volume 13 Number 4  >>  dm0073

The Stata Journal
Volume 13 Number 4: pp. 867-875



Subscribe to the Stata Journal
cover

group2: Generating the finest partition that is coarser than two given partitions

Christian H. Salas Pauliac
Department of Public Policy
University of Chicago
Chicago, IL
[email protected]
Abstract.  In this article, I develop a useful interpretation of the function group() based on partitions belonging to mathematical set theory, an interpretation that in turn engenders a related command here called group2. In the context of the partitioning of sets, while the function group() creates a variable that generates the coarsest partition that is finer than the finest partition generated by the variables used as arguments, the group2 command will create a variable that generates the finest partition that is coarser than the coarsest partition generated by the variables used as arguments. This latter operation has proven very useful in several problems of database management. An introduction of this new command in the context of mathematical partitions is provided, and two examples of its application are presented.
Terms of use     View this article (PDF)

View all articles by this author: Christian H. Salas Pauliac

View all articles with these keywords: group2, partitions, group, egen

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS