Skip to content
Prev 649 / 7420 Next

Analyzing frequencies in R

Dear Manuel,

You can use the Wilson method (with Yates' 
continuity correction) to calculate CIs for 
proportion data.  It's formally described and 
advocated in the following articles:

Newcombe R.G. (1998) Two-Sided Confidence 
Intervals for the Single Proportion: Comparison 
of Seven Methods. Statistics in Medicine 17, 857?872.
Newcombe R.G. (1998) Interval Estimation for the 
Difference Between Independent Proportions: 
Comparison of Eleven Methods. Statistics in Medicine 17, 873?890.

In R, it's implemented in prop.test (which also 
allows two-sample testing of equal proportions).

Cheers,
Phil
At 08:13 AM 6/8/2009, Manuel Sp?nola wrote:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Phil 
Novack-Gottshall 
pnovackg at westga.edu

   Assistant Professor
   Department of Geosciences
   University of West Georgia
   Carrollton, GA 30118-3100
   Phone: 678-839-4061
   Fax: 678-839-4071
   http://www.westga.edu/~pnovackg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~