Re: [Rd] Problem with fitdistr for gamma in R 2.2.0

2005-12-06 Thread Prof Brian Ripley
The problem lies in dgamma, the function which is stated to be implicated. See the following NEWS item: o [dpqr]gamma now returns NaN for an invalid 'shape' parameter (rather than throw an error), for consistency with other distribution functions. That setting lower/upper w

[Rd] problems with initialize-method, difference between Win XP & Linux

2005-12-06 Thread Matthias Kohl
Dear R devels, I have some questions concerning the use of "initialize". Situation: There are two packages "S4pkg1" and "S4pkg2" which include S4 classes and methods where the first one contains a new S4 class "S4pkg1Class". Then, in "S4pkg2" there is a new S4 class "S4pkg2Class" which has a slo

[Rd] standardized residuals (rstandard & plot.lm) (PR#8367)

2005-12-06 Thread Heather . Turner
Full_Name: Heather Turner Version: 2.2.0 OS: Windows XP Submission from: (NULL) (137.205.240.44) Standardized residuals as calculated by rstandard.lm, rstandard.glm and plot.lm are Inf/NaN rather than zero when the un-standardized residuals are zero. This causes plot.lm to break when calculating

Re: [Rd] standardized residuals (rstandard & plot.lm) (PR#8367)

2005-12-06 Thread ripley
Curiously, I was just looking at that, since I believe the answer should be NaN, and some optimizing compilers/fast BLASes are not giving that. (There's an example in reg-test-3.R.) So I think we need to return NaN when hat is within rounding error of 1. My take is that plot.lm should handle th