Chapter Image

R Programs


The following links point to what are usually very simple programs (or bits of code if you prefer) written for R. They should work equally well in S-PLUS, though I have not tried them there. In most cases you can just cut and paste the code into the R command window, though it is usually better to drop it on an editor so that you can work more easily with it.




A Very Gentle Introduction to R

I would expect that most students, and many of their instructors, have never used R and know nothing about it. I have written a Web page available as

ADD.dat
   
ID ADDSC, Gender, Repeat, IQ, EngL, EngG, GPA, SocProb, Dropout

Cancer.dat and BadCancr.dat
SexP, SomTP. DepTP, AnxTP, HosTP, GSITP,
SexS, SomTS, DepTS, AnxTS, HosTS, GSITS,
Intern, Extern, TotBP, InterT, ExternT, ToptPT

Epineq.dat
and Epinuneq.dat
ID, Dosage, Interval, Errors


Mireault.dat
ID, Group, Gender, YearColl, College, GPA, LostPGen, AgeAtLos
SomT, ObsessT, SensitT, DepressT, AnxT, HostT, PhobT, ParT, PsyT, GSIT,
PVTotal, PVLoss, Supptotl

SAT.dat
   
State Expend (expenditure per puil in 1000s) PTratio (pupil teacher ratio) Salary (teacher salaries) 
PctSAT (percent of students taking SAT) VerbalSAT MathSAT CombinedSAT
Stress.dat
FamNum, SexResp, Patient-Spouse, Time1, Time2
 

Data Sets for Specific Chapters


Chapter One

There are no data sets in this chapter.

Chapter Ten

Chapter Two

Chapter Eleven

Chapter Three

Chapter Twelve

Chapter Four

Chapter Thirteen

Chapter Five



Chapter Fourteen

Chapter Six

Chapter Fifteen

Chapter Seven

Chapter Sixteen

Chapter Eight

    There are no data files for Chapter 8

Chapter Seventeen

Chapter Nine

Chapter Eighteen