Message-ID: <f9crj1$4ol$1@sea.gmane.org>
Date: 2007-08-08T16:39:01Z
From: Francisco J. Zagmutt
Subject: test for contingency table when there are many zeros
In-Reply-To: <54f7e7c30708080308t3d1038h81436ad57783d38d@mail.gmail.com>
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
> X-squared = NaN, df = 4, p-value = NA
>
> Warning message:
> Chi-squared approximation may be incorrect in: chisq.test(tt)
>
> What function should I use then? Any suggestion?
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>