Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Sentry Page Protection
Please Wait...
Proc Means [1-3]
SAS Base Exam


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

Example

Copy and run the INTERNET data set from the yellow box below.
Picture

The INTERNET data set contains a character variable:
  • MONTH
Picture

and five numeric variables:
  • CHROME
  • IE
  • FIREFOX
  • SAFARI
  • OPERA
Picture

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.

Picture

​There are 13 observations in total. 
​
Picture

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

Example

Proc Means Data=Internet;
Var Chrome;
Run;
Picture

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%.
Picture

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.
Picture

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

Example

The SAFARI variable has 3 missing values.
Picture

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

Example

Proc Means Data=Internet;
Var Safari;
Run;
Picture

​The statistics are computed for the SAFARI variable. 

Only 10 observations are used in the computation:
Picture

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.
Next

Need some help? 

Get Hint
Get Solution

Fill out my online form.
Already a member? Go to member's area.