search for: gensmokeprop

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

2008 Mar 28
2
Comparing proportions between groups
...ght?! (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 smoker non-smoker women 0.200 0.800 men 0.333 0.667 But then when I try to run a t-test on it, for example t.test(gensmokePROP[3], gensmokePROP[4], alternative = "less")...