RUN TABPRT
(matrix) ;
The TABPRT module prints a matrix in a tabular format. The module can be useful for printing large matrices. The module source code can be edited for further cosmetic changes, such as alternative format or field width, or for assigning specific row and column labels.
r = uniform( j(5,10) ); /* a 5 x 10 numeric matrix */ run tabprt( r );
Figure 24.19: Tabular Display
X | ||||||
---|---|---|---|---|---|---|
COL1 | COL2 | COL3 | COL4 | COL5 | COL6 | |
ROW1 | 0.185 | 0.970 | 0.400 | 0.259 | 0.922 | 0.969 |
ROW2 | 0.819 | 0.524 | 0.853 | 0.067 | 0.957 | 0.297 |
ROW3 | 0.688 | 0.413 | 0.559 | 0.287 | 0.476 | 0.845 |
ROW4 | 0.728 | 0.507 | 0.931 | 0.929 | 0.590 | 0.297 |
ROW5 | 0.167 | 0.871 | 0.299 | 0.935 | 0.900 | 0.569 |
X | ||||
---|---|---|---|---|
COL7 | COL8 | COL9 | COL10 | |
ROW1 | 0.543 | 0.532 | 0.050 | 0.067 |
ROW2 | 0.273 | 0.690 | 0.977 | 0.227 |
ROW3 | 0.635 | 0.590 | 0.583 | 0.377 |
ROW4 | 0.391 | 0.472 | 0.680 | 0.168 |
ROW5 | 0.050 | 0.136 | 0.511 | 0.433 |