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

• specifies the field width and number of decimal places of the statistics

• computes a two-sided 90 percent confidence limit for the mean values of MoneyRaised and HoursVolunteered for the three years of data.

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

 ```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 ;```
 `proc means data=charity fw=8 maxdec=2 alpha=.1 clm mean std;`
 ` class Year;`
 ``` var MoneyRaised HoursVolunteered; title 'Confidence Limits for Fund Raising Statistics'; title2 '1992-94'; run;```

 PROC MEANS displays the lower and upper confidence limits for both variables for each year.