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...
Data Analysis [12-15]


Histogram
You can also visualize the frequency statistics by plotting the histogram from Proc Freq.

Let's take a look at the BULBS data set again.

Example​
Picture

​The histogram can be plotted by adding the PLOTS option in the TABLE statement:


Example

Proc Freq Data=Bulbs;
Table Type / plots=freqplot;
Run;
Picture

The option (plots=freqplot) plots the histogram of the frequency statistics:
Picture

Another plot that are commonly plotted is the cumulative frequency plot.

It can be plotted by using the (plots=cumfreqplot) option:

Example

​Proc Freq Data=Bulbs;
Table Type / plots=cumfreqplot;
Run;
Picture

Finally, you can plots both plots using the (plots=all) option:

​Example

​Proc Freq Data=Bulbs;
Table Type / plots=all;
Run;
Picture

Exercise

Locate the CARS data set from the SASHelp library.

Count how many types of cars are built by each car maker.

​Which car maker makes the most variety of cars in this population?

[Hint: it is much easier to find the result using the histogram.]
Next

Need some help? 


HINT:
Simply use Proc Freq on the Make variable.


SOLUTION:
Proc Freq Data=SASHelp.cars;
Table Make / plots=freqplot;
Run;

From the histogram, Toyota makes the most variety of cars in this population.


Fill out my online form.

Already a member? Go to member's area.