powered by
Density and distribution function of multi-set intersection test.
dpsets(x,L,n,log.p =FALSE) cpsets(x,L,n,lower.tail=TRUE,log.p=FALSE, simulation.p.value=FALSE,number.simulations=1000000)
integer, number of elements overlap among all sets.
vector, set sizes.
integer, background population size.
logical; if TRUE, probability is P[overlap <= x], otherwise, P[overlap > x].
P[overlap <= x]
P[overlap > x]
logical; if TRUE, probability p is given as log(p).
log(p)
logical; if TRUE, probability p is computed from simulation.
integer; number of simulations.
dpsets gives the density and cpsets gives the distribution function.
dpsets
cpsets
Minghui Wang, Yongzhong Zhao, and Bin Zhang (2015). Efficient Test and Visualization of Multi-Set Intersections. Scientific Reports 5: 16923.
supertest, MSET
supertest
MSET
# NOT RUN { #set up fake data n=500; A=260; B=320; C=430; D=300; x=170 (d=dpsets(x,c(A,B,C,D),n)) (p=cpsets(x,c(A,B,C,D),n,lower.tail=FALSE)) # }
Run the code above in your browser using DataLab