SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Computing Frequency Distributions
Producing Frequency Tables


Question: The data set Perm.Survey contains responses to a survey of health and lifestyle habits. A portion of its data is shown below. Which ORDER= option produced the tables that follow?

SAS Data Set Perm.Survey (partial listing)
Item1 Item2 Item3
4 3 5
2 1 4
5 3 4
4 5 4

proc freq data=perm.survey order=?;
   tables item1-item3;
run;
    ORDER=DATA
    ORDER=FORMATTED
    ORDER=FREQ
    ORDER=INTERNAL

Item1 Frequency Percent Cumulative
Frequency
Cumulative
Percent
4 2 50.00 2 50.00
2 1 25.00 3 75.00
5 1 25.00 4 100.00

Item2 Frequency Percent Cumulative
Frequency
Cumulative
Percent
3 2 50.00 2 50.00
1 1 25.00 3 75.00
5 1 25.00 4 100.00

Item3 Frequency Percent Cumulative
Frequency
Cumulative
Percent
4 3 75.00 3 75.00
5 1 25.00 4 100.00



  back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement