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? Thanks a lot! My best! ------------------------------ ******************************************* Xin Meng Capitalbio Corporation National Engineering Research Center for Beijing Biochip Technology BioPharma-informatics & Software Dept. Research Engineer Tel: +86-10-80715888/80726868-6438 Fax: +86-10-80726790 Email??xmeng at capitalbio.com Address:18 Life Science Parkway, Changping District, Beijing 102206, China
"XinMeng" <xmeng at 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 at biostat.ku.dk) FAX: (+45) 35327907
Peter Dalgaard wrote:> "XinMeng" <xmeng at 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). >But beware of exact binomial intervals - they are often not very accurate. Wilson and other intervals are generally better. For example see the binconf function in the Hmisc package. -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
check package "binom". I hope it helps. Best, Dimitris ---- Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web: http://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm ----- Original Message ----- From: "XinMeng" <xmeng at capitalbio.com> To: <r-help at stat.math.ethz.ch> Sent: Wednesday, September 27, 2006 10:12 AM Subject: [R] exact 95% confidence intervals> 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? > > Thanks a lot! > > My best! > > > > ------------------------------ > ******************************************* > Xin Meng > Capitalbio Corporation > National Engineering Research Center > for Beijing Biochip Technology > BioPharma-informatics & Software Dept. > Research Engineer > Tel: +86-10-80715888/80726868-6438 > Fax: +86-10-80726790 > Email??xmeng at capitalbio.com > Address:18 Life Science Parkway, > Changping District, Beijing 102206, China > >--------------------------------------------------------------------------------> ______________________________________________ > R-help at 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. >Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm