Skip to content
Prev 105441 / 398506 Next

Chi-squared approximation may be incorrect in: chisq.test(x)

I am getting "Chi-squared approximation may be incorrect in:
chisq.test(x)"  with the data bleow.

Frequency distribution of number of male offspring in families of size 5.
Number of Male Offspring 	N
0 		                          518
1 		                         2245
2 		                          4621
3 		                          4753
4 		                          2476
5 		                            549
Total 		                      15,162
[,1] [,2]
[1,]    0  518
[2,]    1 2245
[3,]    2 4621
[4,]    3 4753
[5,]    4 2476
[6,]    5  549
Pearson's Chi-squared test

data:  x
X-squared = 40.4672, df = 5, p-value = 1.202e-07

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

Does the warning mean that chisq.test(x) can't be used for this data.

If chisq.test(x) can't be used for this data, which test is to be used?

Pls advise.

thx

ej