The
car library
contains all of the data sets referenced in the book, along with other data
sets used in my
Applied Regression, Linear Models, and Related Methods (Sage, 1997).
The
R and S-PLUS Companion is intended to be usable with other modern
regression texts as well, however, and you may wish to make available to your
students data sets from another book or other source. There are (at least)
two ways to proceed:
- Provide your students with ascii data files to be read via the
read.table function, or with data sets from some other program (such
as SPSS) to be imported into R (see Chapter 2 of the text). The data files
could be made available on the Internet, or distributed on a floppy disk
or CD-ROM. The virtue of this approach is that your students learn to
read data from external sources.
- Using the tools available in R (for Windows systems,
see the information put together by Brian Ripley and maintained by Duncan
Murdoch), build and distribute an R package for your students. The
advantages of this approach are that the data sets are conveniently available
to the students, along with standard help information, and that you can
also distribute course-specific functions. The disadvantage is that you
have to take the time to write and build an R package.