Procedure features: |
PROC MEANS statement options:
|
CLASSDATA= |
|
EXCLUSIVE |
|
FW= |
|
MAXDEC= |
|
PRINTALLTYPES | |
CLASS
statement |
|
Data set: |
CAKE
|
This example
-
specifies the field width and decimal places of
the displayed statistics
-
uses only the values in CLASSDATA= data set as
the levels of the combinations of class variables
-
calculates the range, median, minimum, and maximum
-
displays all
combinations of the class variables
in the analysis.
|
options nodate pageno=1 linesize=80 pagesize=60; |
|
data caketype;
input Flavor $ 1-10 Layers 12;
datalines;
Vanilla 1
Vanilla 2
Vanilla 3
Chocolate 1
Chocolate 2
Chocolate 3
; |
|
proc means data=cake range median min max fw=7 maxdec=0
classdata=caketype exclusive printalltypes; |
|
var TasteScore;
|
|
class flavor layers; |
|
title 'Taste Score For Number of Layers and Cake Flavor';
run; |
|
Taste Score For Number of Layers and Cake Flavor 1
The MEANS Procedure
Analysis Variable : TasteScore
N
Obs Range Median Minimum Maximum
-----------------------------------------------
13 22 80 72 94
-----------------------------------------------
Analysis Variable : TasteScore
N
Layers Obs Range Median Minimum Maximum
----------------------------------------------------------
1 8 19 82 75 94
2 5 20 75 72 92
3 0 . . . .
----------------------------------------------------------
Analysis Variable : TasteScore
N
Flavor Obs Range Median Minimum Maximum
-------------------------------------------------------------
Chocolate 8 20 81 72 92
Vanilla 5 21 80 73 94
-------------------------------------------------------------
Analysis Variable : TasteScore
N
Flavor Layers Obs Range Median Minimum Maximum
------------------------------------------------------------------------
Chocolate 1 5 6 83 79 85
2 3 20 75 72 92
3 0 . . . .
Vanilla 1 3 19 80 75 94
2 2 14 80 73 87
3 0 . . . .
------------------------------------------------------------------------
| |
|
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.