Speaking Stata: Matrices as look-up tables

Matrices in Stata can serve as look-up tables. Because Stata will accept references to matrix elements within many commands, most notably generate and replace, users can access and use values from a table in either vector or full matrix form. Examples are given for entry of small datasets, recoding of categorical variables, and quantile-based or similar binning of counted or measured variables. In the last case, the device grants easy exploration of the consequences of different binning conventions and the instability of bin allocation.


Issue Date:
2012
Publication Type:
Journal Article
DOI and Other Identifiers:
pr0054 (Other)
PURL Identifier:
http://purl.umn.edu/231788
Published in:
Stata Journal, Volume 12, Number 4
Page range:
748-758
Total Pages:
13

Record appears in:



 Record created 2017-04-01, last modified 2017-04-28

Fulltext:
Download fulltext
PDF

Rate this document:

Rate this document:
1
2
3
 
(Not yet reviewed)