Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-swr86 Total loading time: 0 Render date: 2024-07-18T21:33:14.573Z Has data issue: false hasContentIssue false

Chapter 2 - Preliminary Data Exploration

Published online by Cambridge University Press:  05 June 2016

Julie Kezik
Affiliation:
Yale School of Public Health
Melissa Hill
Affiliation:
Cd3 Inc., Austin, Texas
Get access

Summary

Once a dataset is available in SAS, the next logical step is for the programmer to maximize his/her familiarity with that new information in order to optimally clean, maintain, manipulate, or report on the data. The purpose of this chapter is to become comfortable exploring data in SAS. We will build on the navigation skills we learned in Chapter 1 and lay the foundation for understanding SAS datasets and all of their components. Smaller sets of data can be explored visually using the SAS Viewtable; however, most datasets are too large for this method and require a more systematic approach. For this purpose, we recommend the CONTENTS procedure, which provides useful information with respect to the dimensions of a datatable and variable characteristics. In later chapters we will discuss other procedures such as MEANS and FREQUENCY, which provide more in-depth information about variable values.

EXPLORER AND VIEWTABLE WINDOWS

The most straightforward approach to examining a new dataset is to open it in the Viewtable and visually examine the data. Once the Viewtable is open, SAS offers a variety of tools that can help the programmer familiarize themselves with the data.

Navigating in the Explorer and Opening a Dataset in the Viewtable

The Explorer window allows the user to navigate folders and locate datasets using standard mouse-click techniques. Within the view menu, the programmer can choose to view available datasets in list or thumbnail form. When the explorer window is active, the up one level button offers the ability to climb out of one library and into another (see Figure 1.4). Double-clicking on a dataset opens that dataset in a separate window called the Viewtable, which opens in the space on the right-hand side of the screen. In this section we will use a dataset from the sashelp library. Let's begin by opening the ‘cars’ dataset in the Viewtable. From within the Explorer window click sequentially Libraries>Sashelp>Cars.

Investigating a Dataset in the Viewtable

Once a dataset is open in the Viewtable, there are a number of ways to investigate its elements. Using the scrollbars along the bottom and right side of the window brings the user to the unseen edges of the dataset.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2016

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×