Speaking stata: Matrices as look-up tables

5Citations
Citations of this article
10Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

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. © 2012 StataCorp LP.

Cite

CITATION STYLE

APA

Cox, N. J. (2012). Speaking stata: Matrices as look-up tables. Stata Journal, 12(4), 748–758. https://doi.org/10.1177/1536867x1201200413

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free