Skip to content

Minor typo in influence.measures.Rd ?

2 messages · Gavin Simpson, Brian Ripley

#
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
---
#######
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
#
The preferred form is a diff -u as a text attachment.  svn diff is 
basically diff -u, but has the advantage of telling us exactly what 
version was diff-ed against.

But for something as simple as this, inline is fine, thanks.

[The main reason for wanting an attachment is that once lines get 
wrapped or tabs expanded, the noise can far exceed the signal.]
On Thu, 27 Jan 2011, Gavin Simpson wrote: