Chapter Contents

Previous

Next
The MEANS Procedure

Example 7: Computing a Confidence Limit for the Mean


Procedure features:
PROC MEANS statement options:
ALPHA=
FW=
MAXDEC=
CLASS statement

This example

If these data are representative of a larger population of volunteers, the confidence limits provide ranges of likely values for the true population means.


Program
 Note about code
data charity;
   input School $ 1-7 Year 9-12 Name $ 14-20 MoneyRaised 22-26 
         HoursVolunteered 28-29;
   datalines;
Monroe  1992 Allison 31.65 19
Monroe  1992 Barry   23.76 16
Monroe  1992 Candace 21.11  5
     .
     .  more lines of data
     .
Kennedy 1994 Sid     27.45 25
Kennedy 1994 Will    28.88 21
Kennedy 1994 Morty   34.44 25
;
 Note about code
proc means data=charity fw=8 maxdec=2 alpha=.1 clm mean std;
 Note about code
   class Year;
 Note about code
   var MoneyRaised HoursVolunteered;
   title 'Confidence Limits for Fund Raising Statistics';
   title2 '1992-94';
run;


Output
PROC MEANS displays the lower and upper confidence limits for both variables for each year. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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