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.
[1] Nicholas J. Cox,et al. Speaking Stata: Problems with Tables, Part I , 2003 .
[2] Nicholas J. Cox,et al. Speaking Stata: Problems with Lists , 2003 .
[3] Nicholas J. Cox,et al. Speaking Stata: How to Face Lists with Fortitude , 2002 .