search for: dbinom_raw

Displaying 6 results from an estimated 6 matches for "dbinom_raw".

Did you mean: binom_raw
2001 Feb 08
2
dnbinom(,size<1,)=0 (PR#842)
This came up on r-help but indicates a bug. dnbinom(x,n,p) calls dbinom_raw(n-1,...) which returns 0 for n<1. -thomas ---------- Forwarded message ---------- Date: Thu, 08 Feb 2001 17:10:23 +0000 From: Yudi Pawitan <yudi@stat.ucc.ie> To: Mark Myatt <mark@myatt.demon.co.uk> Cc: R-Help <r-help@stat.math.ethz.ch> Subject: Re: [R] Goodness of fit to Po...
2008 Jul 04
1
update on dnbinom with large "size"
...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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIbYyRc5UpGjwzenMRAh57AJ49SUuWs1++D7sacUnFZud2MAROhACfThzD OmM9WuuFZrk4kO1s9MafLlk= =wzaH -----END PGP SIGNATURE---...
2006 Jun 01
1
package installation errors
...** libs g++ -I/home/mfa/gilp/toolchain/R/asd05546/R-2.3.1/include -I/home/mfa/gilp/toolchain/R/asd05546/R-2.3.1/include -I/usr/local/include -DSCYTHE_COMPILE_DIRECT -DSCYTHE_NO_RANGE -fpic -g -O2 -c distributions.cc -o distributions.o distributions.cc: In function `double SCYTHE::INTERNAL::dbinom_raw(const double&, const double&, const double&, const double&)': distributions.cc:2048: could not split insn (insn:TI 454 450 91 (set (reg:DF 23 rxmm2 [58]) (if_then_else:DF (eq (mem:DF (reg/v/u/f:DI 3 rbx [59]) [5 S8 A64]) (reg:DF 23 rxmm2 [58]))...
2001 Feb 09
0
Re: [Rd] dnbinom(,size<1,)=0 (PR#842)
my current code for dnbinom.c has prob = dbinom_raw(n,x+n,p,1-p,give_log); f = ((double)n)/((double)(n+x)); return((give_log) ? log(f) + prob : f*prob); which should work for x>=0, n>=0, 0<=p<=1. dbinom.raw(x,n,p) is intended to work for x>=0, n>=0, 0<=p<=1, without integer checks. When necessary (ie. for x in the dnbino...
2001 Jun 06
3
error in dbeta (PR#970)
Full_Name: Hans Peter Wolf Version: 1.2.1 OS: hpux10.20 Submission from: (NULL) (129.70.84.25) dbeta computes a wrong result with parameters (1.3,1) > version platform hppa2.0-hp-hpux10.20 arch hppa2.0 os hpux10.20 system hppa2.0, hpux10.20 status major 1 minor 2.1 year
2006 Jan 28
1
PR#8528
On 23/02/05 I suggested that given R had included TOMS 708 to correct for t= he=20 poor performance of pbeta, TOMS 654 should be included to fix all the pgamm= a=20 problems. I was slightly surprised to find Morten's code had been included= =20 instead 2 days later. I noticed but did not worry that the reference to me = had=20 been removed.=20 The derivation of the asymptotic expansion for