Use the Frequency transformations
to produce one-way to n-way frequency and contingency (crosstabulation)
tables. The Frequency transformations are based on the FREQ procedure,
which generates frequency statistics. For more information about this
procedure, see "The FREQ Procedure" section in Base SAS
Procedures Guide.
There are two Frequency
transformations: Frequency and One-Way Frequency. The Frequency transformation
uses PROC FREQ to compute statistics for complex tests, measures of
association, and stratified analysis of one-way to n-way tables. The One-Way Frequency transformation
is used for simpler PROC FREQ analysis on one-way tables to examine
the relationship between two classification variables. It can also
be used to compute statistics for equal proportions, specified proportions,
or the binomial proportion. The One-Way Frequency transformation also
has a subset of the options available for the Frequency transformation.
Both Frequency transformations
control many aspects of the analysis, including the following:
-
grouping of rows by the values
in one or more columns
-
how the rows appear in the report
-
which column or columns are analyzed
You can use the Frequency transformations to generate frequency statistics in a
target and on the
Output tab of the Job Editor. ODS output in the form of HTML, PDF, or RTF can be sent to
a folder on the
SAS Application Server that executes the
job. ODS output can also be sent to any folder with access to that SAS Application Server.
The target receives data only for the
source columns that are involved in the analysis. The target requires two columns that either
Frequency transformation populates:
Count receives the total number
of occurrences in a category, and
Percent receives the percentages for each category.
You can specify grouping columns in the Frequency transformations. When you do this,
a SAS BY statement orders target rows according to the values in the grouping columns.
The Frequency transformations
require that grouping columns be sorted in ascending order in the source. If you specify
grouping columns, you can sort those columns before the Frequency
transformation using a SAS Sort transformation.