Applied Business Forecasting and Regression Analysis Generating Reports Lecture 9 Reproduced with permission of SAS Institute INC, Cary, NC, USA
PRINT PROCEDURE The PRINT procedure creates a report of the variables and observations in a SAS data set. You can create a variety of reports ranging from a simple listing to a highly customized report that groups the data and calculates totals and subtotals for numeric variables.
PRINT PROCEDURE
PRINT PROCEDURE
NOOBS Option
NOOBS Option
VAR Statement
WHERE Statement
SUM Statement
BY Statement
SUM and BY Statements
PAGEBY Statement
PAGEBY Statement
LABEL Statement
LABEL Statement
FORMAT Statement
FORMAT Statement
FORMAT Statement
FORMAT Statement
LABEL and FORMAT Statements
TITLE Statement
FOOTNOTE Statement
TITLE and FOOTNOTE Statements
OPTIONS Statement
OPTIONS Statement
The FORMAT Procedure
Naming Convention
Single Values
Ranges
Ranges
Keywords
Formatted Values
Creating and Using Formats
The FREQ Procedure Creating Frequency Tables with the FREQ Procedure. The FREQ procedure produces one-way to n-way frequency tables. By default, the procedure generates one-way frequency tables for all data set variables.
The FREQ Procedure
TABLES Statement TABLES Statement The TABLES statement requests one-way to n-way frequency tables and statistics for those tables.
Two-Way Tables Two-Way Tables An asterisk between two variables produces a two-way table.
Two-Way Tables
CROSSLIST Option The CROSSLIST option displays two-way tables in column format, instead of cell format.
CROSSLIST Option
Statistics Options
NLEVELS Option
The MEANS Procedure Creating Summary Reports with the MEANS Procedure The MEANS procedure computes descriptive statistics for variables across all observations and within groups of observations.
The MEANS Procedure
The MEANS Procedure Statistics By default, the MEANS procedure creates a report with N (number of nonmissing values), MEAN, STDDEV, MIN, and MAX.
The MEANS Procedure In the PROC MEANS statement, you can specify which statistics to compute and the order in which to display them in the output.
MAXDEC= Option The MAXDEC= option in the PROC MEANS statement specifies the maximum number of decimal places to display the statistics in the output.
The MEANS Procedure VAR Statement The VAR statement identifies the analysis variables and specifies their order in the results.
The MEANS Procedure CLASS Statement The CLASS statement specifies one or more variables that the procedure uses to group the data.
The MEANS Procedure CLASS Statement Adding a CLASS statement adds the N Obs column.