and various fonts when your site licenses SAS/GRAPH software. You can use PROC
UNIVARIATE to customize the histograms by adding tables with summary statistics
directly on the graphical display. PROC UNIVARIATE also enables you to overlay the
histogram with fitted density curves or kernel density estimates so that you can examine
the underlying distribution of your data.
Input File and SAS Data Set for Examples
The examples in this section use one input file and one SAS data set. For a complete
listing of the input data, see “The YEAR_SALES Data Set” on page 816. The input
file contains the enrollment and exam grades for an introductory chemistry course. The
50 students enrolled in the course attend several lectures, and a discussion section one
day a week. The input file has the following structure:
Abdallah F Mon 46 Anderson M Wed 75
Aziz F Wed 67 Bayer M Wed 77
Bhatt M Fri 79 Blair F Fri 70
Bledsoe F Mon 63 Boone M Wed 58
Burke F Mon 63 Chung M Wed 85
Cohen F Fri 89 Drew F Mon 49
Dubos M Mon 41 Elliott F Wed 85
…more data lines…
Simonson M Wed 62 Smith N M Wed 71
Smith R M Mon 79 Sullivan M Fri 77
Swift M Wed 63 Wolfson F Fri 79
Wong F Fri 89 Zabriski M Fri 89
The input file contains the following values from left to right:
• the student's last name (and first initial if necessary)
• the student's gender (F or M)
• the day of the week for the student's discussion section (Mon, Wed, or Fri)
• the student's first exam grade
The following program creates the GRADES data set that this section uses. This
example shows the first fifteen observations:
options pagesize=60 linesize=80 pageno=1 nodate;
data grades;
infile 'your-input-file';
input Name & $14. Gender : $2. Section : $3. ExamGrade1 @@;
run;
proc print data=grades;
title 'Introductory Chemistry Exam Scores';
run;
options obs=15;
data grades;
input Name &$14. Gender :$2. Section :$3. ExamGrade1 @@;
datalines;
Abdallah F Mon 46 Anderson M Wed 75
Aziz F Wed 67 Bayer M Wed 77
Bhatt M Fri 79 Blair F Fri 70
Input File and SAS Data Set for Examples 553