[Rd] Minor typo in influence.measures.Rd ?

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 27 19:09:12 CET 2011


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:

> 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
> %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list