From bolker at zoology.ufl.edu  Fri Jul  4 02:58:04 2008
From: bolker at zoology.ufl.edu (Ben Bolker)
Date: Thu, 03 Jul 2008 20:58:04 -0400
Subject: [Rd] dnbinom unreliable for absurdly large "size" parameter
Message-ID: <486D759C.4050003@zoology.ufl.edu>


   Check it out:

curve(dnbinom(1,mu=0.5,size=x),log="x",from=1,to=1e18)
abline(h=dpois(1,lambda=0.5),col=2,lty=2)
text(1,dpois(1,lambda=0.5)+0.02,"Poisson",col=2,pos=4)

   I will take a look in the C code when I get
a chance to see if I can offer
a patch, but in the meantime wanted to alert people to
this "feature" ...  (it looks like I will have to go
through dnbinom and dbinom_raw to see where the problem
is ...)

    Ben Bolker


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20080703/c4819de8/attachment.bin>


[Rd] dnbinom unreliable for absurdly large "size" parameter
Ben Bolker