look at ?mcnemar.test(); 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://www.med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
----- Original Message -----
From: "S.C. Wong" <hhecwsc at hkucc.hku.hk>
To: <r-help at stat.math.ethz.ch>
Sent: Friday, March 10, 2006 9:42 AM
Subject: Re: [R] Pairwise comparison of proportions
>I have collected the following data before and after a treatment for
>a
> number of sites:
>
> Before Treatment After Treatment
> Case success failure success failure
> 1 nbs1 nbf1 nas1 naf1
> 2 nbs2 nbf2 nas2 naf2
> 3 nbs3 nbf3 nas3 naf3
> .....
> N nbsN nbfN nasN nafN
>
> I would like to do a "pairwise" comparison of the two proportions
of
> success before and after the treatment to test whether the treatment
> is
> effective.
>
> I am wondering if there is any R package that can help conduct this
> analysis.
>
> May I thank you in advance for your kind help and advice!
> SC
>
> ______________________________________________
> 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
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm