This procedure is primarily used to produce frequency counts. However, what distinguishes this procedure between others is its ability to compute Chi-Square tests, measures of association, and agreement for contingency tables. The syntax of the procedure is as follows:
Proc Freq <options>;
Tables requests < options >;
By variables;
Exact statistic-options </ computation-options>;
Output <OUT = SAS-dataset> options;
Tables requests </options>;
Test options;
Weight variable < / option >;
We will use the simplest form of version of Proc Freq and explore the results in a dataset containing information on the Class, Height, and Weight of children in a school:
Data Class;
Input ID Class $ Height $ Weight $;
Datalines;
1 A Over5.7 Above50 1 0 1
2 A Over5.7 Above50 1 1 0
3 B Over5.7 Below50 1 1 .
4 B Under5.7 Below50 1 1 1
5 A Over5.7 Below50...