From terra at gnome.org  Mon Apr 12 17:20:53 2004
From: terra at gnome.org (terra@gnome.org)
Date: Mon Apr 12 17:20:55 2004
Subject: [Rd] pbinom accuracy (PR#6757)
Message-ID: <20040412152053.2910DEDE2@slim.kubism.ku.dk>

Full_Name: Morten Welinder
Version: snapshot
OS: 
Submission from: (NULL) (65.213.85.129)


There is really no good reason for throwing part of p's precision away in
pbinom.
Using Ambramowitz & Stegun 26.5.2:

-    return pbeta(1 - p, n - x, x + 1, lower_tail, log_p);
+    return pbeta (p, x + 1, n - x, !lower_tail, log_p);


[Rd] pbinom accuracy (PR#6757)
terra@gnome.org