Dear list, There is, I believe, a minor typo in the example section of influence.measures.Rd. In the final example the word `does` appears where I suspect `dose` is required:
I couldn't remember exactly what format patches should be in, so here is one as diff would produce: Index: devel/src/library/stats/man/influence.measures.Rd =================================================================== 198c198 < yi <- c(0,2,14,19,30) # number of mice responding to does xi --- > yi <- c(0,2,14,19,30) # number of mice responding to dose xi ####### and this version is provided by svn diff: Index: devel/src/library/stats/man/influence.measures.Rd =================================================================== --- devel/src/library/stats/man/influence.measures.Rd (revision 54122) +++ devel/src/library/stats/man/influence.measures.Rd (working copy) @@ -195,7 +195,7 @@ ## Irwin's data [Williams 1987] xi <- 1:5 -yi <- c(0,2,14,19,30) # number of mice responding to does xi +yi <- c(0,2,14,19,30) # number of mice responding to dose xi mi <- rep(40, 5) # number of mice exposed summary(lmI <- glm(cbind(yi, mi -yi) ~ xi, family = binomial)) signif(cooks.distance(lmI), 3)# ~= Ci in Table 3, p.184 ####### Both are against the R svn trunk, r54122, and are attached, but may not make it through the mailing list filters. All the best, Gavin -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Index: devel/src/library/stats/man/influence.measures.Rd =================================================================== 198c198 < yi <- c(0,2,14,19,30) # number of mice responding to does xi --- > yi <- c(0,2,14,19,30) # number of mice responding to dose xi
Index: devel/src/library/stats/man/influence.measures.Rd =================================================================== --- devel/src/library/stats/man/influence.measures.Rd (revision 54122) +++ devel/src/library/stats/man/influence.measures.Rd (working copy) @@ -195,7 +195,7 @@ ## Irwin's data [Williams 1987] xi <- 1:5 -yi <- c(0,2,14,19,30) # number of mice responding to does xi +yi <- c(0,2,14,19,30) # number of mice responding to dose xi mi <- rep(40, 5) # number of mice exposed summary(lmI <- glm(cbind(yi, mi -yi) ~ xi, family = binomial)) signif(cooks.distance(lmI), 3)# ~= Ci in Table 3, p.184
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel