[R] Comparing proportions between groups

Lila86 Lila234 at hotmail.de
Fri Mar 28 11:32:08 CET 2008


Okay, I will do that, thank you.
prop.test seems to work, too, someone wrote me?! 
prop.test(x=c(40,100), n=c(200,300))

I tried it and it seems fine.. is it the same or is chisq.test better? I
will read a bit about chi-square tests now.. Thanks a lot, 
Lila



Richard Cotton wrote:
> 
> 
> Lila86 wrote:
>> 
>> I have two groups (men and women) and I know per group how many of them
>> smoke or don't smoke (women 40 of 200; men 100 of 300). I would like to
>> know how I can compare in R if men and women differ significantly in
>> their smoking.  However, because there are more men in the sample than
>> women I cannot just compare the number of smokers and non-smokers in both
>> groups, right?! (I would not really know how to do that either, to be
>> honest :(). 
>> 
> 
> Read up on contingency tables, and take a look at ?chisq.test.
> 

-- 
View this message in context: http://www.nabble.com/Comparing-proportions-between-groups-tp16348714p16349016.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list