| Computing Frequency Distributions |
| Creating
Crosstabulations |
| Suppressing Table Information
Another way to control the format of crosstabulations is to limit the output of the FREQ procedure to a few specific statistics. Remember that when crosstabulations are run, PROC FREQ produces tables with cells that contain:
You can use options to suppress any of these statistics. To control the depth of crosstabulation results, add any combination of the following options to the TABLES statement:
Suppose you only want to use the percentages of proc format;
value weight low-139='< 140'
140-180='140-180'
181-high='> 180';
run;
proc freq data=clinic.diabetes;
tables sex*weight / nofreq norow nocol;
format weight weight.;
run;
|
|
|
|||||||||||||||||||||||||||||
| Notice that Percent is the only statistic remaining in the table's legend box. |
![]() ![]() |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.