- Syntax
- Overview
- Concepts
- Using
- Results
- Examples Computing Specific Descriptive StatisticsComputing Descriptive Statistics with Class VariablesUsing the BY Statement with Class VariablesUsing a CLASSDATA= Data Set with Class VariablesUsing Multilabel Value Formats with Class VariablesUsing Preloaded Formats with Class VariablesComputing a Confidence Limit for the MeanComputing Output StatisticsComputing Different Output Statistics for Several VariablesComputing Output Statistics with Missing Class Variable ValuesIdentifying an Extreme Value with the Output StatisticsIdentifying the Top Three Extreme Values with the Output StatisticsUsing the STACKODSOUTPUT option to control data
- References

Features: |
- PROC MEANS statement options:
- ALPHA=
- FW=
- MAXDEC=
CLASS statement |

Data set: | Charity |

```
data charity;
input School $ 1-7 Year 9-12 Name $ 14-20 MoneyRaised 22-26
HoursVolunteered 28-29;
datalines;
Monroe 2007 Allison 31.65 19
Monroe 2007 Barry 23.76 16
Monroe 2007 Candace 21.11 5
. . . more data lines . . .
Kennedy 2009 Sid 27.45 25
Kennedy 2009 Will 28.88 21
Kennedy 2009 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 '2007-09'; run;

Create the CHARITY data set. CHARITY
contains information about high-school students' volunteer work for
a charity. The variables give the name of the high school, the year
of the fund-raiser, the first name of each student, the amount of
money each student raised, and the number of hours each student volunteered.
A DATA step creates this data set.

```
data charity;
input School $ 1-7 Year 9-12 Name $ 14-20 MoneyRaised 22-26
HoursVolunteered 28-29;
datalines;
Monroe 2007 Allison 31.65 19
Monroe 2007 Barry 23.76 16
Monroe 2007 Candace 21.11 5
. . . more data lines . . .
Kennedy 2009 Sid 27.45 25
Kennedy 2009 Will 28.88 21
Kennedy 2009 Morty 34.44 25
;
```

Specify the analyses and the analysis options. FW= uses a field width of eight and MAXDEC= uses
two decimal places to display the statistics. ALPHA=0.1 specifies
a 90% confidence limit, and the CLM keyword requests two-sided confidence
limits. MEAN and STD request the mean and the standard deviation,
respectively.