Previous Page | Next Page

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 this data is representative of a larger population of volunteers, then 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 data lines . . .

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=0.1 clm mean std;
 Note about code
   class Year;
 Note about code
   var MoneyRaised HoursVolunteered;
 Note about code
   title 'Confidence Limits for Fund Raising Statistics';
   title2 '1992-94';
run;

Output

 Note about figure
                 Confidence Limits for Fund Raising Statistics                 1
                                    1992-94

                              The MEANS Procedure

             N                      Lower 90%    Upper 90%
     Year  Obs  Variable          CL for Mean  CL for Mean      Mean   Std Dev
 -----------------------------------------------------------------------------
     1992   31  MoneyRaised             25.21        32.40     28.80     11.79
                HoursVolunteered        17.67        23.17     20.42      9.01

     1993   32  MoneyRaised             25.17        31.58     28.37     10.69
                HoursVolunteered        15.86        20.02     17.94      6.94

     1994   46  MoneyRaised             26.73        33.78     30.26     14.23
                HoursVolunteered        19.68        22.63     21.15      5.96
 -----------------------------------------------------------------------------

Previous Page | Next Page | Top of Page