I used chisq.test(read.table("C:/Users/Maggy/Downloads/dust.asc",
header=TRUE))

and got this



        Pearson's Chi-squared test

data:  read.table("C:/Users/Maggy/Downloads/dust.asc", header = TRUE) 
X-squared = 5226.164, df = 3735, p-value < 2.2e-16

and I think it should be right for the whole set, but that's not what I
need, because I only have to use it for "cbr" and "smoking"
-- 
View this message in context: 
http://r.789695.n4.nabble.com/need-help-for-chi-squared-test-tp3177925p3178052.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