Re: [Rd] Suggested change to integrate.Rd (was: Re: 0.5 != integrate(dnorm, 0, 20000) = 0)

2010-12-08 Thread Ravi Varadhan
07, 2010 11:09 PM To: spencer.gra...@structuremonitoring.com Cc: r-devel@r-project.org Subject: Re: [Rd] Suggested change to integrate.Rd (was: Re: 0.5 != integrate(dnorm, 0, 2) = 0) R developers understand intimately how things work, and terse descriptions are sufficient. However, most

[Rd] Suggested change to integrate.Rd (was: Re: 0.5 != integrate(dnorm, 0, 20000) = 0)

2010-12-07 Thread Spencer Graves
What do you think about changing the verbiage with that example in integrate.Rd from fails on many systems to something like gives wrong answer without warning on many systems? If I had write access to the core R code, I'd change this myself: I'm probably not the only user who

Re: [Rd] Suggested change to integrate.Rd (was: Re: 0.5 != integrate(dnorm, 0, 20000) = 0)

2010-12-07 Thread John Nolan
R developers understand intimately how things work, and terse descriptions are sufficient. However, most typical R users would benefit from clearer documentation. In multiple places I've found the R documentation to be correct and understandable AFTER I've figured a function out. And to be

Re: [Rd] Suggested change to integrate.Rd (was: Re: 0.5 != integrate(dnorm, 0, 20000) = 0)

2010-12-07 Thread David Scott
If changes are to be made to integrate it would be nice if the following was fixed: integrate(dnorm, -Inf, -Inf) 1 with absolute error 9.4e-05 Note that integrate manages ok when not dealing with Inf or -Inf: integrate(dnorm, -500, -500) 0 with absolute error 0 David Scott On 8/12/2010