Previous Page | Next Page

The MEANS Procedure

Example 1: Computing Specific Descriptive Statistics


Procedure features:

PROC MEANS statement options:

statistic keywords

FW=

VAR statement


This example


Program

 Note about code
options nodate pageno=1 linesize=80 pagesize=60;
 Note about code
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
;
 Note about code
proc means data=cake n mean max min range std fw=8;
 Note about code
   var PresentScore TasteScore;
 Note about code
   title 'Summary of Presentation and Taste Scores';
run;

Output

 Note about figure
                    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
 ------------------------------------------------------------------------------

Previous Page | Next Page | Top of Page