Skip to content
Prev 246626 / 398502 Next

need help for chi-squared test

I've got a dataset which looks like this in the beginning:
 

     cbr  dust smoking expo
1      0  0.20       1    5
2      0  0.25       1    4
3      0  0.25       1    8
4      0  0.25       1    4
5      0  0.25       1    4

(till no. 1240, anyway, a huge set) 

I have to analyse cbr and smoking, I know it works with chisq.test() for the
whole set, but I only need cbr and smoking, and I have no idea how to
extract them.