Posted by : Netbloggy
Friday, October 2, 2015
As PROC MEANS is very helpful in performing various operations on Numeric variables, PROC FREQ can be used to count frequencies of both character and numeric variables,
in one-way, two-way (Crosstabs/Contingency Tables), and three-way tables.
Problem 1:
Using the SAS data set Blood, generate one-way frequencies for the variables Gender, BloodType, and AgeGroup. Use the appropriate options to omit the cumulative statistics and percentages (17.1)
Input:
Solution:
Title 'Frequency of Gender BloodType Age group without Cum.Freq. and %'; PROC FREQ DATA=A15001.A01_BLOOD; TABLE GENDER BLOODTYPE AGEGROUP /NOCUM NOPERCENT; RUN; Title;
Output:
Learning:
- How to use PROC FREQ to build a one-way frequency table
- Different Options of PROC FREQ like NOCUM and NOPERCENT