Re: [Rd] poisson.test from stats package does not pass the conf.level (PR#14195)

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Wed, 27 Jan 2010 23:45:12 +0100

mfay_at_niaid.nih.gov wrote:
> Hi,
>
> The poisson.test function from stats package does not pass the conf.level p=
> arameter for the two-sample test. Here is an example:
>
> poisson.test(c(2,4),c(20,14),conf.level=3D.95)$conf.int
> poisson.test(c(2,4),c(20,14),conf.level=3D.9)$conf.int
>
>
> Here is the solution, change:
>
> RVAL <- binom.test(x, sum(x), r * T[1]/(r * T[1] + T[2]),
> alternative =3D alternative)
>
> to:
>

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

Now fixed in 2.10.1 patched and R-devel. Thanks.

-- 
    O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)              FAX: (+45) 35327907

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 27 Jan 2010 - 22:47:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Jan 2010 - 01:50:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive