Re: [R] exact 95% confidence intervals

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Wed 27 Sep 2006 - 09:11:39 GMT

"XinMeng" <xmeng@capitalbio.com> writes:

> Hello sir:

> As to the 2*2 table format for reporting results comparing a new
> test to true diagnosis,when I got the sensitivity and
> specificity,how can I calculate the exact 95% confidence intervals
> (based on the binomial distribution) for sensitivity and specificity
> via R?

Just run binom.test on the data from each column (or row, depending on which way you turn the tables).

-- 
   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@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed Sep 27 19:20:53 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 27 Sep 2006 - 13:30:06 GMT.

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