From jh910 at juno.com  Sat Jul  9 21:27:00 2005
From: jh910 at juno.com (J. Hosking)
Date: Sat, 09 Jul 2005 15:27:00 -0400
Subject: [Rd] qgamma with first argument 1
Message-ID: <dap8e5$7iu$1@sea.gmane.org>

   > qgamma(1,1.1)
   [1] Inf

as expected.  But for shape parameter between 0.16 and 1:

   > qgamma(1,.5)
   [1] NaN
   Warning message:
   NaNs produced in: qgamma(p, shape, scale, lower.tail, log.p)

and for shape parameter 0.16 or less:

   > qgamma(1,.1)
   [1] 99.42507

Arguments close to 1 give approximately correct results:

   > qgamma(1-1e-15,.5)
   [1] 32.05055
   > qgamma(1-1e-15,.1)
   [1] 28.8129





R version is the R 2.1.1 binary from CRAN:
   platform i386-pc-mingw32
   arch     i386
   os       mingw32
   system   i386, mingw32
   status
   major    2
   minor    1.1
   year     2005
   month    06
   day      20
   language R



[Rd] qgamma with first argument 1
J. Hosking