Creating Tabular Reports | |
Creating One- and Three-Dimensional
Tables![]() ![]() |
![]() |
Throughout this lesson, you've created and enhanced a two-dimensional
table. With a simple modification however, you can easily produce a one-
or three-dimensional table.
Think again about the way that the TABLE statement specifies table dimensions. As shown below, a TABLE statement with two dimension expressions requests a table that displays rows and columns. proc tabulate data=clinic.admit; class sex; var height weight; table sex,height*min weight*min; run; This is the two-dimensional table produced by the PROC TABULATE step. |
Height | Weight | |
Min | Min | |
Sex | 61.00 | 118.00 |
F | ||
M | 69.00 | 147.00 |
To create a three-dimensional table, you can add a third dimension expression
to the left.
In the TABLE statement below, proc tabulate data=clinic.admit; class sex actlevel; var height weight; table actlevel,sex,height*min weight*min; run; The following output illustrates the three-dimensional table. |
ActLevel HIGH | ||||||||||||
|
ActLevel LOW | ||||||||||||
|
ActLevel MOD | ||||||||||||
|
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.