Sentry Page Protection

**Proc Means [1-3]**

*SAS Base Exam*

**Proc Means**

The MEANS procedure computes summary statistics such as mean, standard deviation, minimum and maximum.

Copy and run the

__Example__Copy and run the

**INTERNET**data set from the yellow box below.The INTERNET data set contains a character variable:

- MONTH

and five numeric variables:

- CHROME
- IE
- FIREFOX
- SAFARI
- OPERA

The 5 numeric variables represent the market share percentage by each browser.

For example, Google Chrome has about 50% of the market share and it is used by about 50% of the internet users over the last 13 months.

There are 13 observations in total.

The MEANS procedure can be used to compute the summary statistics across the 13 observations.

__Example__

Proc Means Data=Internet;

Var Chrome;

Run;

By default, the five statistics below are computed:

- N
- Mean
- Standard Deviation
- Minimum
- Maximum

Over the 13-month period, the average market share by Google Chrome is 51.93% with the minimum at 48.71% and maximum at 55.33%.

**The "N" Statistics**

The N statistics shows the number of observations used in the computation of the statistics.

In our example, 13 observations are used to compute the mean, standard deviation, minimum and maximum.

Please note that missing values are not used when running the MEANS procedure.

__Example__

The

**SAFARI**variable has 3 missing values.

The MEANS procedure will use only the non-missing values when computing the summary statistics.

__Example__

Proc Means Data=Internet;

Var

**Safari**;

Run;

The statistics are computed for the SAFARI variable.

Only 10 observations are used in the computation:

The 3 missing values from the SAFARI variable are excluded by the MEANS procedure.

**Exercise**

Compute the average market share percentage by Internet Explorer (IE) over the 13-month period.

*Need some help?*

Fill out my online form.