Dear friends, My dataset have many zeros, so i must use fisher exact test . Unfortunately, the fisher.test(stats) function fail to do it. Anybody knows how to do the fisher exact test with many zeros in the dataset? My dataset is: a<-matrix(c(0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,1,1,0,2,1,5,1,1,6,4,4,1,17,2,8,5,7,1,1,24,3,6,1,1,3,2,16,7,4,0,2,4,0,17,0,1,0,0,0,1,2),nrow=8,byrow=TRUE) data.frame(a) b<-a[,-7] as.matrix(b) c<-as.matrix(b) > c [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0 1 0 0 0 0 [2,] 0 1 0 0 0 0 [3,] 0 1 1 0 2 1 [4,] 1 1 6 4 4 1 [5,] 2 8 5 7 1 1 [6,] 3 6 1 1 3 2 [7,] 7 4 0 2 4 0 [8,] 0 1 0 0 0 1 > fisher.test(c,workspace=200000000000000000) 错误于fisher.test(c, workspace = 2e+17) : 外接函数调用时不能有NA(arg10) 此外: Warning message: 强制改变过程中产生了NA Any suggestion or help are greatly appreciated. -- With Kind Regards, oooO::::::::: (..)::::::::: :\.(:::Oooo:: ::\_)::(..):: :::::::)./::: ::::::(_/:::: ::::::::::::: [***********************************************************************] Zhi Jie,Zhang ,PHD Tel:86-21-54237149 Dept. of Epidemiology,School of Public Health,Fudan University Address:No. 138 Yi Xue Yuan Road,Shanghai,China Postcode:200032 Email:epistat@gmail.com Website: www.statABC.com [***********************************************************************] oooO::::::::: (..)::::::::: :\.(:::Oooo:: ::\_)::(..):: :::::::)./::: ::::::(_/:::: ::::::::::::: [[alternative HTML version deleted]]