search for: fisherexact

Displaying 1 result from an estimated 1 matches for "fisherexact".

2009 Nov 11
1
fisher.test negative value error
Hi all, I am new to python, R and rpy2. I having few errors when I am using 'fisher.test' function where I am struck now. Please help to fix these bugs. My code for fisher.test goes this way *from rpy2 import * import rpy2.robjects as robjects def fisherExact(a,b,c,d): v = [a,b,c,d] m = robjects.r['matrix'](v,2,2) s = robjects.r['fisher.test'](m) return s * Here the value of a=0,b=1,c=0 and d=1. so the matrix m should be like this [,1] [,2] [1,] 0 0 [2,] 1 1 But I am getting an error like this *File "/usr/...