### R Starter Kit An R and S-PLUS Companion to Applied Regression by John Fox

This page describes how to access and use the book An R and S-PLUS Companion to Applied Regression by John Fox.

Obtaining the Book

Obtaining the data files

You can reproduce the examples from the book by obtaining the data files from within R. You can get the data files (as well as the supplemental programs used in the book) by typing the following command from within R

install.packages("car")

Say that you quit R at this point.

In the future, you can load the car package with the library(car) command. This loads the data and functions associated with this package for the duration of your R session.

library(car)

You can see the list of data and functions you downloaded with the help() command.

help(package=car)

One of the data files is called Chile. Say we want to access the Chile data file, we can type

data(Chile)

You can play with the examples from the book using the data files and functions provided in this package.

The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.