[R] Comparing proportions between groups
Richard Cotton
Richard.Cotton at hsl.gov.uk
Fri Mar 28 11:19:15 CET 2008
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.
More information about the R-help
mailing list