Hi all, though i know this is a simple question, i really hope someone could. I am just trying to compare percents respectively the difference in percents by a simple test. t.test usually compares means and is working like it is supposed to be. Now i wonder how i can use a test in R to test for significant difference between two percentages. http://survey.scantron.com/resources/significant-calc.htm is pretty much all i need. How can i solve this in R ? thx in advance m.
Sounds like a homework problem. Consult any basic statistics text. Hint: You don't use a t-test to test for a difference in percentages. Check "chi-squared" and/or "contingency table." Cheers, Bert Gunter -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Bunny, lautloscrew.com Sent: Wednesday, September 17, 2008 9:41 AM To: r-help at r-project.org Subject: [R] t-test between percentages Hi all, though i know this is a simple question, i really hope someone could. I am just trying to compare percents respectively the difference in percents by a simple test. t.test usually compares means and is working like it is supposed to be. Now i wonder how i can use a test in R to test for significant difference between two percentages. http://survey.scantron.com/resources/significant-calc.htm is pretty much all i need. How can i solve this in R ? thx in advance m. ______________________________________________ R-help at r-project.org 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.
On Sep 17, 2008, at 12:41 PM, Bunny, lautloscrew.com wrote:> Hi all, > > though i know this is a simple question, i really hope someone could. > I am just trying to compare percents respectively the difference in > percents by a simple test. t.test usually compares means and is > working like it is supposed to be. Now i wonder how i can use a test > in R to test for significant difference between two percentages. > http://survey.scantron.com/resources/significant-calc.htm is pretty > much all i need. > > How can i solve this in R ??prop.test
Check prop.test(). At 12:41 PM 9/17/2008, Bunny, lautloscrew.com wrote:>Hi all, > >though i know this is a simple question, i really hope someone could. >I am just trying to compare percents respectively the difference in >percents by a simple test. t.test usually compares means and is >working like it is supposed to be. Now i wonder how i can use a test >in R to test for significant difference between two percentages. >http://survey.scantron.com/resources/significant-calc.htm is pretty >much all i need. > >How can i solve this in R ? > >thx in advance > >m. > >______________________________________________ >R-help at r-project.org 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.===============================================================Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral at lcfltd.com Least Cost Formulations, Ltd. URL: http://lcfltd.com/ 824 Timberlake Drive Tel: 757-467-0954 Virginia Beach, VA 23464-3239 Fax: 757-467-2947 "Vere scire est per causas scire"