用于计数单个类别或者多个类别的。统计中的n*n列联表。HELP 文档:produces one-way to n-way frequency tables and reports frequency counts. PROC.FREQ can compute chi-square tests for one-way to n-way tables; for tests and measures of association and of agreement for two-way to n-way crosstabulation tables; risks and risk difference for 2×2 tables; trends tests;and Cochran-Mantel-Haenszel statistics. You can also create output data sets.
常用到该proc情况:数据类型为定类变量。例如求A,B班级的男女同学人数,男女同学成绩中获得优良中差的个数。
syntax:
The following statements are available in the FREQ procedure:
PROC FREQ <options> ;
BY variables;
OUTPUT <OUT=SAS-data-set> output-options;
TABLES requests </ options> ;
SAS HELP Document:
: