Skip to Main Content
Hands-On SAS for Data Analysis
book

Hands-On SAS for Data Analysis

by Harish Gulati
September 2019
Beginner to intermediate content levelBeginner to intermediate
346 pages
7h 35m
English
Packt Publishing
Content preview from Hands-On SAS for Data Analysis

Scatter charts

These diagrams are used to establish whether there is a correlation between the variables that have been plotted.

If you remember the Cost_Living dataset well, you may recollect the Other variable. We don't know how it contributes to the cost of living index that's calculated for each city. Let's try and understand the relationship between Other and Index using scatter plots. As always, we will start with the simple form of scatter plot before we try and mix things up with the options and functionalities that the scatter plot offers us in the SAS environment:

Title "Index and Other Relationship";  Proc SGPLOT Data=Cost_Living;  Scatter X=Index Y=Other;Run;

This will result in the following chart as the output:

From the dataset, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Big Data Analytics with SAS

Big Data Analytics with SAS

David Pope, Subhashini S Tripathi
An Introduction to SAS Visual Analytics

An Introduction to SAS Visual Analytics

Tricia Aanderud, Rob Collum, Ryan Kumpfmiller

Publisher Resources

ISBN: 9781788839822Supplemental Content