[R] qgamma inaccuracy

2008-08-05 Thread skylab gupta
Hello, I have been working with various probability distributions in R, and it seems the gamma distribution is inaccurate for some inputs. For example, qgamma(1e-100, 5e-101, lower.tail=FALSE) gives: 1.0. However, it seems this is incorrect; I think the correct answer should be 0.0823720296207172

[R] accuracy of pt for x close to 0

2007-10-03 Thread skylab gupta
Hello, I have been playing around with the statistical distributions in R, and overall I think the accuracy is very good. However, it seems that for the Student's t distribution, the CDF loses accuracy when evaluated at values close to zero. For instance, I did the following in R