[R] Chi Square with two tab-delimited text files

Carina Brehony carina.brehony at zoology.oxford.ac.uk
Mon Feb 26 15:24:41 CET 2007


Hi,
Thanks for the input.  I have tried the test again just using the Observed
values and the read.table() function and get this:

data:  y 
X-squared = NaN, df = 5405, p-value = NA

Warning message:
Chi-squared approximation may be incorrect in: chisq.test(y)


So it doesn't seem to like it!  I guess the zeroes are a problem for it.  Is
there another way around? Do I need to have the totals of each column and
row in the file also?

Thanks,
Carina



More information about the R-help mailing list