FULLTAB: Stata module to generate 'full tables' which can be stacked into matrices
Guy D. van Melle ()
Additional contact information
Guy D. van Melle: University of Lausanne
Statistical Software Components from Boston College Department of Economics
Abstract:
Suppose you want to tabulate a set of variables, say v1 to v15, each of which can take on the same possible values (e.g. 1,2,3,4,5) and stack the resulting frequencies into a matrix using the matcell option of @tabulate@. A problem appears when one value, say "5", has count 0 (i.e. never appears in a specific variable, say v12. Then the resulting matrix produced by matcell has only 4 elements, while the other vectors have 5. And trying to append a row of the wrong length to a matrix will cause an error. fulltab obviates this problem by temporarily adding observations to your data set, one for each possible value in your list, thus generating full tables. The counts are all off by one and are corrected before exit. And added observations are dropped.
Language: Stata
Date: 1998-10-21
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/f/fulltab.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/f/fulltab.hlp 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: https://EconPapers.repec.org/RePEc:boc:bocode:s358901
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
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 ().