Skip to content

Commit

Permalink
conf.level blunder in poisson.test PR#14195
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/branches/R-2-10-branch@51057 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
pd committed Jan 27, 2010
1 parent a9f3481 commit a849665
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ BUG FIXES
when documented to do so. (Discovered whilst investigating
PR#14189.)

o match(incomparables=<non-NULL>) could in rare cases infinite-loop.
o match(incomparables=<non-NULL>) could in rare cases
infinite-loop.

o poisson.test() needed to pass 'conf.level' to binom.test()
(PR#14195)



Expand Down
2 changes: 1 addition & 1 deletion src/library/stats/R/poisson.test.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ poisson.test <- function(x, T = 1, r = 1, alternative =
if (k == 2) {

RVAL <- binom.test(x, sum(x), r * T[1]/(r * T[1] + T[2]),
alternative=alternative)
alternative=alternative, conf.level=conf.level)

RVAL$data.name <- DNAME
RVAL$statistic <- x[1]
Expand Down

0 comments on commit a849665

Please sign in to comment.