[R] a statistic question about chisq.test()
kjetil brinchmann halvorsen
kjetil at entelnet.bo
Thu Mar 27 03:47:30 CET 2003
On 26 Mar 2003 at 13:35, aprilsun wrote:
First, look at the expected values under the null. If only a few are
below 5 and all are above 1 there are probably no problem.
Second, you can use chisq.test with the argument
simulate.p.value=TRUE
Kjetil Halvorsen
> Hi,
> In the chisq.test(), if the expected frequency for some categories is <5, there will be a warning message which says
> Warning message:
> Chi-squared approximation may be incorrect in: chisq.test(x, p = probs)
>
> I am wondering whether there are some methods to get rid of this mistake... Seems the ?chisq.test() doesn't provide more
> options to solve this problem. Or, the only choice is to preprocess the data to avoid this situation?
>
> Thanks a lot!
>
> aprilsun
>
> [[alternate HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list