You are on page 1of 1

Errata list

Page 49, line 4 from bottom.


status = as.integer(twins$Social)
Page 55, line 1. Due to changes in R-2.14.0,
replace FUN=mean with FUN=colMeans
Page 83, line 2 from bottom.
counts = cbind(Bin, Weldon) should be
counts = cbind(Binom, Weldon)
Page 141, last line
Should be
plot(bgsu$Year, bgsu$Enrollment)
Page 147
Should be
stem(froot)
Page 224 - line following displayed equation for F statistic:
"between sample error MSE" should be "between sample error MST"
Page 260
Should be
times.in.lead = S["L", ]
Page 265
Function should be
prop.no.matches = function(n){
matches = replicate(10000, scramble.hats(n))
sum(matches == 0) / 10000
}
Page 265, line 7 up from section 11.4. Should be
many.probs = sapply(2:20, prop.no.matches)
Page 272, line 6
It is said that there are 10,000 simulations, but the
R code says 100,000 simulations.
Page 288, line 4
Should be
sim = metrop.hasting.rw(mylogpost, 1, 0.2, 1000, 331.6, 270.3)
Comments:
Page 24
If murder.pct was created previously (as in the example using attach)
then it will remain as a global variable. To see what happens using
with(), try removing murder.pct:
> rm(murder.pct)
> with(USArrests, expr={
+ murder.pct = 100 * Murder / (Murder + Assault + Rape)
+ })
> murder.pct
Error: object 'murder.pct' not found

You might also like