Skip to content

pf hangs with infinite arguments (PR#8110)

2 messages · Rob Hyndman, Brian Ripley

#
Full_Name: Rob Hyndman
Version: 2.1.1
OS: Windows
Submission from: (NULL) (202.7.176.132)


pf(Inf,x,Inf) causes R to hang up for any value of x.
#
Which x?  Not for 1, 10, Inf for example.

I did manage to make pf(Inf, 5, Inf) hang, but not under R-patched or 
R-devel.  It seems this is already fixed (please see the reporting 
conditions in the FAQ or in the posting guide).

pf(Inf, n1, Inf) is the same code as pchisq(Inf, n1) and pgamma(Inf, n1/2)
The latter seems to be the same as PR#8001, as in the NEWS item

     o   pgamma(Inf, 1.1) did not terminate (PR#8001).

Please reopen this if you can reproduce it in R-devel (soon to become 
2.2.0) or R-patched.
On Wed, 31 Aug 2005 Rob.Hyndman at buseco.monash.edu.au wrote: