Chapter Contents

Previous

Next
The MEANS Procedure

Example 3: Using the BY Statement with Class Variables


Procedure features:
PROC MEANS statement option:
statistic keywords
BY statement
CLASS statement
Other features:
SORT procedure
Data set: GRADE

This example


Program

options nodate pageno=1 linesize=80 pagesize=60;
 Note about code
proc sort data=Grade out=GradeBySection;
   by section;
run;
 Note about code
proc means data=GradeBySection min max median;
 Note about code
   by section;
 Note about code
   class Status Year;
 Note about code
   var Score;
title1 'Final Exam Scores for Student Status and Year of Graduation';
title2 ' Within Each Section';
run;


Output
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.