Procedure features: |
PROC MEANS statement option:
|
CLASS statement |
TYPES
statement |
|
This example
|
options nodate pageno=1 linesize=80 pagesize=60; |
|
data grade;
input Name $ 1-8 Gender $ 11 Status $13 Year $ 15-16
Section $ 18 Score 20-21 FinalGrade 23-24;
datalines;
Abbott F 2 97 A 90 87
Branford M 1 98 A 92 97
Crandell M 2 98 B 81 71
Dennison M 1 97 A 85 72
Edgar F 1 98 B 89 80
Faust M 1 97 B 78 73
Greeley F 2 97 A 82 91
Hart F 1 98 B 84 80
Isley M 2 97 A 88 86
Jasper M 1 97 B 91 93
; |
|
proc means data=grade maxdec=3; |
|
var Score; |
|
class Status Year; |
|
types () status*year; |
|
title 'Final Exam Grades for Student Status and Year of Graduation';
run; |
|
Final Exam Grades for Student Status and Year of Graduation 1
The MEANS Procedure
Analysis Variable : Score
N
Obs N Mean Std Dev Minimum Maximum
-------------------------------------------------------------------------
10 10 86.000 4.714 78.000 92.000
-------------------------------------------------------------------------
Analysis Variable : Score
N
Status Year Obs N Mean Std Dev Minimum Maximum
-----------------------------------------------------------------------------
1 97 3 3 84.667 6.506 78.000 91.000
98 3 3 88.333 4.041 84.000 92.000
2 97 3 3 86.667 4.163 82.000 90.000
98 1 1 81.000 . 81.000 81.000
-----------------------------------------------------------------------------
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.