From p.dalgaard at biostat.ku.dk  Wed Jan 27 23:45:12 2010
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Wed, 27 Jan 2010 23:45:12 +0100
Subject: [Rd] poisson.test from stats package does not pass the
 conf.level (PR#14195)
In-Reply-To: <20100126185512.911402830319@mail.pubhealth.ku.dk>
References: <20100126185512.911402830319@mail.pubhealth.ku.dk>
Message-ID: <4B60C1F8.5090006@biostat.ku.dk>

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



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