Search results
The following PROC FREQ statements create an output data set of frequencies and percentages: proc freq; tables A A*B / out=D; run; The output data set D contains frequencies and percentages for the table of A by B, which is the last table request listed in the TABLES statement.
- ODS Table Names
PROC FREQ assigns a name to each table that it creates. You...
- Multiway Tables
CROSSLIST Tables. If you specify the CROSSLIST option, PROC...
- Computational Resources
For each variable in a table request, PROC FREQ stores all...
- OUTPUT Statement
Note that you can use the Output Delivery System (ODS) to...
- ODS Table Names
The PROC FREQ statement invokes the FREQ procedure. Optionally, it also identifies the input data set. By default, the procedure uses the most recently created SAS data set.
The OUT= option creates the FreqCount data set, which contains the crosstabulation table frequencies. The OUTEXPECT option outputs the expected table cell frequencies to FreqCount, and the SPARSE option includes zero cell frequencies in the output data set.
7 lis 2023 · PROC FREQ in SAS used to create freq distribution statistics and analysing categorical data. Chi-square analysis, ODS Graphics, Tables, OUTPUT statements used in proc freq 15+ examples.
The OUT= option creates the FreqCount data set, which contains the crosstabulation table frequencies. The OUTEXPECT option outputs the expected table cell frequencies to FreqCount, and the SPARSE option includes cell frequencies of 0 in the output data set.
10 kwi 2023 · The OUTPUT statement creates a data set that contains statistics (such as the Pearson chi-square and its p -value), while the OUT= option in the TABLES statement creates a data set that contains frequency counts and percentages. For more information, see the section Output Data Sets.
The PROC FREQ statement invokes the FREQ procedure. Optionally, it also identifies the input data set. By default, the procedure uses the most recently created SAS data set. Table 4 lists the options available in the PROC FREQ statement. Descriptions of the options follow in alphabetical order.