Skip to Main Content
SAS for R Users
book

SAS for R Users

by Ajay Ohri
September 2019
Beginner to intermediate content levelBeginner to intermediate
208 pages
3h 17m
English
Wiley
Content preview from SAS for R Users

10Data Output

Output is very important in analysis to show the results of data science to stakeholders. It can primarily be Excel, Powerpoint, and Word documents for data analysis. With the advent of cloud and collaboration tools, there are many ways to communicate the intermediate stages of data analysis. The following shows ways to show output in R and SAS.

10.1 Data Output in SAS

There are two ways:

  1. Proc Export‐ Proc Export can export data in many formats

Here, replace will replace an earlier file with same name

  1. ODS

ODS stands for output delivery system. It is used to format the output of a SAS program. We can output data by putting output print within ODS HTML and ODS HTML CLOSE. Here we output the PROC Means of a dataset to a different object and print it to an excel file.

  1. Images
Snipped image of a SAS Studio window displaying a list of graphs under Tasks and Utilities in the left panel and settings at the right panel.

Figure 10.1 Creating plots in SAS.

Output is in the form of an HTML page which can be saved.

HTML output plot in SAS displaying horizontally aligned circles lying on the horizontal lines for hybrid, truck, wagon, sports, sedan, and SUV. Save image as option is highlighted in the right-click menu at the center.

Figure 10.2 HTML output plot in SAS.

10.2 Data Output in R

Here we change a working directory ...

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

Statistical Hypothesis Testing with SAS and R

Statistical Hypothesis Testing with SAS and R

Sonja Kuhnt, Dirk Taeger

Publisher Resources

ISBN: 9781119256410Purchase book