EconPapers    
Economics at your fingertips  
 

NEWCOMBE11: Stata module to compute eleven confidence intervals for the difference between two independent binomial proportions

Silvano Andorno ()
Additional contact information
Silvano Andorno: University of Eastern Piedmont "Amedeo Avogadro"

Statistical Software Components from Boston College Department of Economics

Abstract: newcombe11 calculates confidence intervals for the risk difference, p1 - p2, between two independent binomial proportions, using the eleven methods numbered in Newcombe (1998). The default is method 10, the combination of uncorrected Wilson score intervals, with 95% confidence. In immediate syntax, group 1 is x1/n1. In dataset syntax, group 1 is the smaller observed numeric value of group; group 2 is the larger value. Observations with missing outcome or group are excluded. Changing group coding can reverse the sign of the difference. The output explicitly identifies the numeric code of each group and displays its value label, if defined. The difference always subtracts the larger-coded group's proportion from the smaller-coded group's proportion. Labels do not change this order. In immediate syntax, the two groups follow the supplied argument order.

Language: Stata
Requires: Stata version 10
Keywords: risk difference; confidence intervals (search for similar items in EconPapers)
Date: 2026-10-31
Note: This module should be installed from within Stata by typing "ssc install newcombe11". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/n/newcombe11.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/n/newcombe11.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s460002

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-11-02
Handle: RePEc:boc:bocode:s460002