Chapter Contents

Previous

Next
The TABULATE Procedure

Overview

The TABULATE procedure displays descriptive statistics in tabular format, using some or all of the variables in a data set. You can create a variety of tables ranging from simple to highly customized.

PROC TABULATE computes many of the same statistics that are computed by other descriptive statistical procedures such as MEANS, FREQ, and REPORT. PROC TABULATE provides

Simple Table Produced by PROC TABULATE shows a simple table that was produced by PROC TABULATE. The data set contains data on expenditures of energy by two types of customers, residential and business, in individual states in the Northeast (1) and West (4) regions of the United States. The table sums expenditures for states within a geographic division. (The RTS option provides enough space to display the column headers without hyphenating them.)

options nodate pageno=1 linesize=64 
        pagesize=40;

proc tabulate data=energy;
   class region division type;
   var expenditures;
   table region*division, type*expenditures /
         rts=20;
run;

Simple Table Produced by PROC TABULATE
[HTML Output]  [Listing Output]

Complex Table Produced by PROC TABULATE is a more complicated table using the same data set that was used to create Simple Table Produced by PROC TABULATE . The statements that create this report

For an explanation of the program that produces this report, see Summarizing Information with the Universal Class Variable ALL .

Complex Table Produced by PROC TABULATE
[HTML Output]  [Listing Output]

HTML Table Produced by PROC TABULATE shows a table created with HTML. Beginning with Version 7 of the SAS System, you can use the Output Delivery System to create customized HTML files from PROC TABULATE. For an explanation of the program that produces this table, see Specifying Style Elements for HTML Output .

HTML Table Produced by PROC TABULATE

[IMAGE]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.