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.

-----
Regards,
Richie.

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

______________________________________________
R-help@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.

Reply via email to