|
|
|
||||
|
|
|||||
This page describes how to access and use the data files associated with the book Linear Models with R by Julian J. Faraway.
About 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("faraway")
Say that you quit R at this point.
In the future, you can load the faraway package with the library(faraway) command. This loads the data and functions associated with this package for the duration of your R session.
library(faraway)
You can see the list of data and functions you downloaded with the help() command.
help(package=faraway)
One of the data files is called death. Say we want to access the death data file, we can type
data(death)
You can play with the examples from the book using the data files and functions provided in this package.
UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services