@@ -0,0 +1,500 @@
+from numpy import *%0Afrom shogun.Library import *%0A%0Ax=array(%5B%5B20.0,15,15%5D,%5B10,20,20%5D%5D)%0Ay=array(%5B%5B21,21,18%5D,%5B19,19,22%5D%5D)%0Az=array(%5B%5B15,27,18%5D,%5B32,5,23%5D%5D)%0A%0A%0Aparameter_list = %5B%5Bx,concatenate((x,y,z),1)%5D,%5By,concatenate((y,y,x),1)%5D%5D%0A%0Adef library_fisher2x3_modular(table, tables):%0A%09pval=Math_fishers_exact_test_for_2x3_table(table)%0A%09pvals=Math_fishers_exact_test_for_multiple_2x3_tables(tables)%0A%09return (pval,pvals)%0A%0Aif __name__=='__main__':%0A%09print 'Fisher 2x3'%0A%09library_fisher2x3_modular(*parameter_list%5B0%5D)%0A

add example for fisher test