我在R中运行了卡方检验,结果如下:
crianza = matrix(c(1,1,0,12,12,7,2,1,0,0,1,0,0,0,5,
0,0,0,1,1,2,0,0,3,0,0,0,13,35,29,0,0,1,10,
0,0,1,0,0,0,0,0),ncol=3,byrow=TRUE)
colnames (crianza) = c("Neonate","Juevenile","Adult")
rownames (crianza) = c("C.acronotus","C.limbatus","C.obscurus","C.perezi",
"C.porosus","C.falciformis","G.cuvier","G.cirratum","M.canis",
"R.porosus","R.lalandii","S.lewini","S.mokarran","S.tiburo")
crianza = as.table(crianza)
Pearson's Chi-squared test
data: crianza
X-squared = NaN, df = 26, p-value = NA
Warning message:
In chisq.test(crianza) : Chi-squared approximation may be incorrect
有人知道为什么会出现警告吗?是因为我使用了错误的方法吗?
之后会出现该消息,其中
E可能是
n*p或
outer(sr, sc, "*")/n`,具体取决于非矩阵或矩阵输入。 - r2evans