[R] test for contingency table when there are many zeros

2007-08-08 Thread gallon li
Here is my table tt A B 1 297 398 2 470 376 3 30 23 4 3 3 5 0 0 b/c two cells are zero, I can't use chisq.test() in R which gives the following output; chisq.test(tt) Pearson's Chi-squared test data: tt X-squared = NaN, df = 4, p-value = NA Warning message:

Re: [R] test for contingency table when there are many zeros

2007-08-08 Thread Francisco J. Zagmutt
fisher.test(tt) Francisco gallon li wrote: Here is my table tt A B 1 297 398 2 470 376 3 30 23 4 3 3 5 0 0 b/c two cells are zero, I can't use chisq.test() in R which gives the following output; chisq.test(tt) Pearson's Chi-squared test data: tt