School of Statistics

Image of Goldy Gopher and link to School of Statistics

Wordmark of and link to University of Minnesota
Applied Linear Regression, 3rd Ed.
using S-Plus

You need to get the primer for S-Plus and install the S-Plus library; other material is optional. Instructions are given below.

Text downloads

  1. Get the S-Plus primer that shows how to use S-Plus to do the computations discussed in the book.
  2. Get RSscripts.zip, a collections of scripts for use with S-Plus that reproduce most of the computations shown in the book.
  3. Get documentation for the functions in the S-Plus library. You can download the library by following the instructions given below.
  4. Get documentation for the data in the S-Plus library.
  5. Links to other sites for getting S-Plus resources that are used in the book.

The S-Plus library for Versions 6 or 7

The S-Plus library alr3 was updated on February 20, 2006. It includes a few bug-fixes. The data from the book are now included in the library for both Windows and Linux/Unix. We recommend that all users download the new version of the library.

S-Plus for Windows

Locate the S-Plus library directory. If you have a standard installation, this directory will be in "C:\Program Files\Insightful\splus7\library" if you are using S-Plus Version 7.0, or in "C:\Program Files\Insightful\splus62\library" if you are using S-Plus Version 6.2. If you are updating an existing version of alr3, move the existing alr3 directory to the trash. Then, unzip
S62Winalr3.zip in the S-Plus library directory.

If you do not have administrator privileges (for example, you are using S-Plus in a school computer lab), you can get instructions from Insightful Corp. on installing libraries elsewhere.

S-Plus for Unix/Linux

We recommend that you install the library so it can be used by everyone on your system. This may require getting help from your system administrator. Download the file alr3V7.tar.gz, which is a compressed "tar" file, and then follow these directions.
  1. Decide where you want to install the library. If you or your system administrator have write permission, you should use the standard S-Plus library. You can find the standard location by typing:
    % Splus SHOME
    /APPS/S-Plus7

    In this example, the library directory is /APPS/S-Plus7/library. If you do not have write permission in the S-Plus home, you can install for your own use in any other directory, for example in ~/MySlibrary.
  2. cd to the library directory
  3. If alr3 already exists as a subdirectory of your library directory, remove it before going to the next step
  4. Copy the alr3V7.tar.gz file to the library directory. Type the following four Linux commands:
    % gunzip alr3V7.tar.gz
    % tar -xf alr3V7.tar
    % cd alr3
    % source Ins7

To use the library

After you start S-Plus type

> library(alr3)

(or library(alr3,lib.loc="~/MySlibrary") if you installed your own Linux/Unix library) to load the library. All the functions and data files are immediately available for your use. More information on using the library is available in the primer.

S-Plus Resources

  1. www.insightful.com, the home for S-Plus.
  2. Information for downloading the Resample library for bootstrap resampling using S-Plus.
  3. Get S-Plus documentation on-line.