`Modern Applied Statistics with S-Plus' by W.N. Venables & B.D. Ripley ====================================================================== Errata for the second and third printings. Those marked (2) are corrected in the third printing. p. 59 l.-10 median |x - \mu| (| | not [ ]). p. 86 l.3 and && only evaluates ... p. 88 l.14 For(i = 1:250, res[i] <- myfun(sample(x, replace=T)) ) (Replace ; by ,) p.104 l.7 tempfile creates a _name_ for a file, not the file itself. p.122 Weibull has a scale parameter as well as shape in 3.2 and later. p.125 The period evaluates to 4.6e18, not 6.6e14 p.126 l.11 the >skewness<. p.160 lines -11,-10 should be dist climb 4.9 0.0084718 p.164 l.17 list(N == "0", N == "1") might be clearer. (The levels of N are "0" and "1" in the file npk.dat in the scripts directory.) p.180 [A warning, not an erratum.] Figure 6.8 was produced in S-Plus 3.1. Later releases produce a similar but not identical plot. p.213 l.6 [For clarification.] >of the median< to regression is: p.227 l.20 derivatives with beta subscripted as 1,2 should be 0,1 p.234 vcov.glm is defined on page 188, so vcov.lm is not actually used. It should be vcov.lm <- function(obj) { so <- summary(obj, corr=F) so$sigma^2 * so$cov.unscaled } (This has been corrected in the software on the third printing.) p.262 (10.8) The final sum is over i -> j and w_{ih} should be w_{ij}. p.263 l.24,25 x is the independent variables, y the dependent ones. (2) p.268 eq (11.1) Interchange \delta_i = 0 and \delta_i = 1. p.271 third displayed equation. - is needed before H(t). p.274 Table 11.1. A clarification: The last column refers to the quoted model with linear wbc not log(wbc). p.275 l.8 change - to +. p.278 l.-6 10 percentile for >log< T of (2) p.279 l.-8 A clearer version is: it is common to employ the Breslow approximation in which each death is always considered to precede all other events at that time. p.282 l.2 beta-hat = (-1.07, 0.37)^T. The values quoted were computed with the Breslow approximation. p.288 l.1 `interval-censored' means different things to different people: here it means both left- and right-censored. p.289 l.16 Replace 1/1/71 by 1 Oct 1971. p.289 We should have had age=c(50,50) - 48, but in fact survfit would in error here even with the correct age. p.303 l.13 (n-1) not (n-p), replace 1^T X 1 by 1 1^T X twice. p.317 l.11 The first term of (13.3) is the >squared< Mahalanobis ... p.321 There is a misprint in the table of Fisher's data: (medium, black) had a count of 26 not 25. The corrected results are First canonical correlation: 0.44637 Row scores: blue light medium dark -0.89679 -0.98732 0.075306 1.5743 Column scores: fair red medium dark black -1.2187 -0.52258 -0.094147 1.3189 2.4518 p.332 Caption: The numbers m/n denote the proportion of training cases reaching that node that are classified incorrectly by the label in the node p.349 rts(scan(n=48)) p.353 first two displays. Interchange max and min. p.356 last line of last display (bias ...). Delete 2pi/n. p.359 l.2 sqrt(m) + 0.11 + 0.12/sqrt(m). p.361 (14.5) and (14.6). Replace upper limit q by p in (14.5) and first sum of (14.6). p.362 l.2 2^q, not 2^p p.367 The coh component is the _squared_ coherency, so these plots need some adjustment (and people need to use more helpful names). p.391 The 3D spherical covariance should have r/d rather than d/r, twice. Software -------- Function qda.q. Add the 2* at ldet[i] <- 2*sum(log(abs(diag(qx)))) Only very rarely will this have a visible effect. Typos ----- p.23 line 15. ... specified, >in< which ... p.23 line -6 delete one of `Lo Lo' p.29 line -8 bold x p.39 line 6. Character vectors may >be< created ... (2) p. 59 exer 2.2 birthwt not birthwts p.68 line -11 allow>s< p.139 line 6. First term should have expected value p.139 line 17. can evaluate via the (omit in) p.185 line 7. and the canonical link >that< ... p.189 line -15. on the toxicity >to< the tobacco budworm Heliothis virescens >of< doses of the p.197 line 4 For large models >it< is often helpful to p.197 line -9 proportion, not proportions p.209 line -8 with one value >that< appears to be out by p.220 line -10 [For clarification.] Change the second occurrence of `outliers' to `outlying'. p.227 line 17. ... To >do< so, we write ... p.229 line -17 ... to supply, though, ... p.250 line 13 ... freedom to >be< specified ... p.255 lines -4,-3 The suffix on alpha should be j not k, twice. p.263 line 13 to help >the< optimization process. p.274 Table 11.1 line 4 -0.23 should be -0.20. (2) p.277 line 19 Moving on >to< the gehan dataset. (2) p.279 line -12 ... corrrect treatment of ties >causes< ... p.281, 403 Nagelkerke p.316 line 5 proportions, not proportion. p.318 line 6 Studdert-Kennedy is misspelt. p.333 line 10 if >we< disallow p.335 line -13 ... benchmark >of a< mix ... p.345 line 4 ... but >not in< the ... p.345 line 6 this, zero >probabilities< ... p.372 l. -1 missing X after \Delta \Delta_{12} p.373 l. 3 missing X after \Delta \Delta_{12} p.374 l.-5 missing ( after I_ii p.381 line -1 phenomenon p.386 line 8 minimizing p.398 Box & Cox >An< analysis ... p.401 H\"ardle. Springer-Verlag. p.401 Hoaglin et al (1985) ... Tables, Trends ... p.401 Hoaglin et al (1991) delete `the' from title. p.432 line -13 ... This will be >a< vector ... p.451 for expand.grid read 69, 164, 197, 220, 235, 387, 418