[R] Chi Square Test on two groups of variables
Brett Stansfield
brett at hbrc.govt.nz
Fri May 27 00:00:34 CEST 2005
Dear R help
I have been trying to conduct a chi square test on two groups of variables
to test whether there is any relationship between the two sets of variables
chisq.test(oxygen, train)
Pearson's Chi-squared test
data: oxygen
X-squared = 26.6576, df = 128, p-value = 1
> chisq.test(oxygen)
Pearson's Chi-squared test
data: oxygen
X-squared = 26.6576, df = 128, p-value = 1
It looks as if R is only reading the first set of variables pertaining to
oxygen. Is there a way for it to test for two groups of variables?
brett stansfield
Brett Stansfield
Environmental Scientist - Water Quality
Hawke's Bay Regional Council
102 Vautier Street
Private Bag 6006
Napier
Phone (06) 835-9200 extn 9334
Fax (06) 835-3601
More information about the R-help
mailing list