SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Computing Frequency Distributions
Creating Crosstabulations


Question: Look carefully at the PROC FREQ output below. Which program created this table?

Frequency
Row Pct
Table of Sex by Height
Sex Height Total
< 5'5" 5'5-10" > 5'10"
F 7
63.64
4
36.36
0
0.00
11
 
M 0
0.00
4
44.44
5
55.56
9
 
Total 7 8 5 20

 
proc format;
   value height low-64='< 5''5"'
                65-70='5''5-10"'
                71-high='> 5''10"';
run;
proc freq data=clinic.diabetes;
   tables sex*height / nopercent nocol;
   format height height.;
run;
 
proc format;
   value height low-64='< 5''5"'
                65-70='5''5-10"'
                71-high='> 5''10"';
run;
proc freq data=clinic.diabetes;
   tables sex*height / nopercent norow;
   format height height.;
run;
 
proc format;
   value height low-64='< 5''5"'
                65-70='5''5-10"'
                71-high='> 5''10"';
run;
proc freq data=clinic.diabetes;
   tables sex*height / norow nocol;
   format height height.;
run;


  back||next


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

Terms of Use & Legal Information | Privacy Statement