Applied Linear Regression, 3rd Ed.
using SAS
using SAS
Three resources are available from this page for SAS users:
- Click this link to get a SAS primer that shows how to use SAS to do the computations discussed in the book;
- A directory of SAS files including all the data files uses in the book (except for one);
- SAS scripts that can be used to reproduce most of the computations in the book.
Data files for SAS
The data for use with SAS are provided in a zip file. The files in the zip file were created with SAS version 9.0 in ".sas7bdat" format. These files can be used with SAS Version 7 or later. Many other programs can read these files as well, including SPSS Version 12, JMP for Windows or Linux. If you have an earlier version of SAS, you need to use the plain text files.Please follow these instructions to download the data and make it usable on your computer. Some patience is required, as there are several steps.
-
Get
alr3sas.zip a compressed file containing a directory
with all the data files in SAS ".sas7bdat" format.
Unzip the file in a directory where you would like to keep the library, such
as C:\Documents and Settings\username\My Documents. You can
choose any location for which you have write permission. If you are working
in a student computer lab, you can save the directory on removable media
rather than on the machine's hard disk. In any case, you will end up
with a directory called alr3sas that contains all the files.
If you plan to use the files with a program other than SAS, you are now finished. To use a data file, simply start your program, and from the File menu you will use either the Open or the Import menu item to read a file that you just downloaded. If you are using SAS, the following additional installation instructions will make the data particularly easy to use.
-
Start SAS. You will get several windows and a toolbar that will look
something like this:
- From the toolbar, push your mouse button over the symbol that looks
like a file drawer, sixth from
the right on the toolbar above,
but the location of this icon may be a little different on your
toolbar. You should get a dialog that looks like this,
apart from information that you will need to fill in:
- Use the Browse button to find the alr3sas directory, and then double-click on alr3sas. Press the OK button to return to this dialog. The location of your directory will be appear in the Path box.
- Fill out the rest of the dialog as shown. Type alr3 in the Name text area. If you have saved the data files on the computer's hard disk, be sure to press the button next to "Enable at startup". If you have saved the files on removable media, you should not press the "Enable at startup" button, and repeat steps 3-5 every time you start SAS. Press the OK button, and the alr3 library will be created.
proc print data = alr3.forbes; run;More information on using the data files is available in the primer.
SAS Scripts
Get the scripts for the primer in SASscripts.zip.
Links
Go to the SAS support website.