Page 79 - SAS_manual
P. 79

Program 7.14:             Output:



               7.6 PROC FREQ:


               PROC FREQ can be used to count frequencies of both character and numeric variables, in one-way, two-
               way, and three-way tables. In addition, you can use PROC FREQ to create output data sets containing
               counts and percentages.

               SYNTAX:


               PROC FREQ DATA=DSN;
                   TABLES VARLIST/<OPTIONS>;
               RUN;
               On the next line, the TABLES statement is where you put the names of the variables you want to produce
               a frequency table for.  You can  list  as many  variables as  you  want,  with  each  variable separated by  a
               space. If the TABLES statement is not included, then SAS will generate a table for every variable in the
               dataset.


               List of options


                NOROW              Remove row percentage
                NOCOL          Remove column percentage
                NOPERCENT  Remove total percentage
                NOCUM          Remove cummilative value
                LIST           Display result in list format
                MISSING        sinclude missing value in format



               Program 7.15









               If you execute the above code, you will get columns as:



                                                    SAS HANDBOOK | VISIT:: http://nikhilanalytics.com  79
   74   75   76   77   78   79   80   81   82   83   84