search for: gensmoke

Displaying 1 result from an estimated 1 matches for "gensmoke".

2008 Mar 28
2
Comparing proportions between groups
...mpare 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 :(). I have done this: gensmoke <- table(data$gender,data$smoke) #save table old.digits = options("digits") # store the number of digits options(digits=3) # only print 3 decimal places gensmokePROP = prop.table(gensmoke,1) #table of the proportions I'd like to compare...