Procedure features: |
PROC
MEANS statement options:
|
VAR
statement |
|
This example
-
specifies the analysis
variables
-
computes the statistics for the specified keywords
and displays them in order
-
specifies the field width of the statistics.
|
options nodate pageno=1 linesize=80 pagesize=60; |
|
data cake;
input LastName $ 1-12 Age 13-14 PresentScore 16-17
TasteScore 19-20 Flavor $ 23-32 Layers 34 ;
datalines;
Orlando 27 93 80 Vanilla 1
Ramey 32 84 72 Rum 2
Goldston 46 68 75 Vanilla 1
Roe 38 79 73 Vanilla 2
Larsen 23 77 84 Chocolate .
Davis 51 86 91 Spice 3
Strickland 19 82 79 Chocolate 1
Nguyen 57 77 84 Vanilla .
Hildenbrand 33 81 83 Chocolate 1
Byron 62 72 87 Vanilla 2
Sanders 26 56 79 Chocolate 1
Jaeger 43 66 74 1
Davis 28 69 75 Chocolate 2
Conrad 69 85 94 Vanilla 1
Walters 55 67 72 Chocolate 2
Rossburger 28 78 81 Spice 2
Matthew 42 81 92 Chocolate 2
Becker 36 62 83 Spice 2
Anderson 27 87 85 Chocolate 1
Merritt 62 73 84 Chocolate 1
; |
|
proc means data=cake n mean max min range std fw=8; |
|
var PresentScore TasteScore; |
|
title 'Summary of Presentation and Taste Scores';
run; |
|
Summary of Presentation and Taste Scores 1
The MEANS Procedure
Variable N Mean Maximum Minimum Range Std Dev
------------------------------------------------------------------------------
PresentScore 20 76.1500 93.0000 56.0000 37.0000 9.3768
TasteScore 20 81.3500 94.0000 72.0000 22.0000 6.6116
------------------------------------------------------------------------------
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.