Skip to content

fisher.test negative value error

2 messages · Bhanu Mangipudi, William Dunlap

#
I think you are passing a list matrix to fisher.test, not
a numeric matrix.  E.g.,
  > fisher.test(matrix(list(0,1,0,1),2,2))
  Error in fisher.test(matrix(list(0, 1, 0, 1), 2, 2)) : 
    all entries of 'x' must be nonnegative and finite
The python v should be a numeric array instead of a list.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com