
scidb_fisher.test(a,x="x",m="m",n="n",k="k",alternative="two.sided", `eval`=FALSE)
scidb
array or scidbdf
data frame object.Consider the following 2x2 contingency table:
x
input value specifies the name of the SciDB array attribute that
indicates the number of 'yes' events in both classifications.
The m
input value specifies the name of the SciDB array attribute that
indicates the marginal sum of the first column.
The n
input value specifies the name of the SciDB array attribute that
indicates the marginal sum of the second column.
The k
input value specifies the name of the SciDB array attribute that
indicates the marginal sum of the first row.
scidb
phyper
qhyper
dhyper
# Create a test array:
a <- scidb("apply(build(<x:int64>[i=0:0,1,0],2),m,12,n,18,k,17)")
scidb_fisher.test(a)[]
# output looks like:
# x m n k pval estimate
# 0 2 12 18 17 0.0005367241 0.04693664
Run the code above in your browser using DataLab