Skip to Content
Introduction to Linear Regression Analysis, 5th Edition
book

Introduction to Linear Regression Analysis, 5th Edition

by Douglas C. Montgomery, Elizabeth A. Peck, G. Geoffrey Vining
April 2012
Beginner
672 pages
17h 39m
English
Wiley
Content preview from Introduction to Linear Regression Analysis, 5th Edition

APPENDIX D

INTRODUCTION TO SAS

One of the hardest parts about learning SAS is creating data sets. For the most part, this appendix deals with data set creation. It is vital to note that the default data set used by SAS at any given time is the data set most recently created. We can specify the data set for any SAS procedure (PROC). Suppose we wish to do multiple regression analysis on a data set named delivery. The appropriate PROC REG statement is

proc reg data=delivery;

We now consider in more detail how to create SAS data sets.

D.1 BASIC DATA ENTRY

A. Using the SAS Editor Window

The easiest way to enter data into SAS is to use the SAS Editor. We will use the delivery time data, given in Table 3.2 as the example throughout this appendix.

Step 1: Open the SAS Editor Window The SAS Editor window opens automatically upon starting the Windows or UNIX versions of SAS.

Step 2: The Data Command Each SAS data set requires a name, which the data statement provides. This appendix uses a convention whereby all capital letters within a SAS command indicates a name the user must provide. The simplest form of the data statement is

data NAME;

The most painful lesson learning SAS is the use of the semicolon (;). Each SAS command must end in a semicolon. It seems like 95% of the mistakes made by SAS novices is to ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Solutions Manual to Accompany Introduction to Linear Regression Analysis, 5th Edition

Solutions Manual to Accompany Introduction to Linear Regression Analysis, 5th Edition

Ann G. Ryan, Douglas C. Montgomery, Elizabeth A. Peck, G. Geoffrey Vining, Anne G. Ryan
Applied Logistic Regression, 3rd Edition

Applied Logistic Regression, 3rd Edition

David W. Hosmer Jr., Stanley Lemeshow, Rodney X. Sturdivant

Publisher Resources

ISBN: 9780470542811Purchase book