[R] R code for testing the equality of two independent Binomial Populations

Tomas Aragon aragon at berkeley.edu
Fri Apr 1 00:25:25 CEST 2005


--- jiaotuo niu <niujiaotuo at yahoo.com> wrote:
> Hey guys,
>  
> I have problem in dealing with R code for testing the equality of two
> independent Binomial Populations.  The null hypo. is p1=p2=p (Notice:
> not only p1=p2 !).  I don't know how to write the test code which
> includes the value of 'p'.  Your help is appreciated!
>  
> Shuang

Try 'prop.test' function.
Tomas

Tomas Aragon, MD, DrPH
Work: http://www.idready.org
EpiTools: http://www.epitools.net
HomePage: http://www.medepi.net/aragon




More information about the R-help mailing list