Procedure features: |
PROC MEANS statement options:
|
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 this data is representative of a larger population of
volunteers, then 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 data lines . . .
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=0.1 clm mean std; |
|
class Year; |
|
var MoneyRaised HoursVolunteered; |
|
title 'Confidence Limits for Fund Raising Statistics';
title2 '1992-94';
run; |
|
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
-----------------------------------------------------------------------------
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.