R Notes (STAT 210B: Winter, 2003)

R is a free software.

You can download copies of R and get other information from the R Home Page.
Click here for UCLA Statistics R support.

The following R notes are prepared for STAT 210B by Hongquan Xu .

You need library(faraway) to reproduce the results in the lecture notes.

Download and unzip faraway.zip in a directory (e.g., work/210).


MacOS X


Replace

>library(faraway)

with

>library(faraway, lib.loc="Macintosh HD:Users:hongquan:work:210")

* Change the path in lib.loc accordingly.


Unix (XDarwin)

The library(faraway) does not work under Unix.  

To use the R commends from library(faraway), (assuming you unzip faraway.zip in your working directory of R).

> source("faraway/R/faraway")

To use a dataset (e.g., bliss),  replace

> data(bliss)

with

> load("faraway/data/bliss.rda")



Hongquan Xu <hqxu@stat.ucla.edu>