
dbint(n, A, range = NULL, log = FALSE)
pbint(n, A, vals, upper.tail = TRUE, log.p = FALSE)
qbint(p, n, A, upper.tail = TRUE, log.p = FALSE)
rbint(num = 5, n, A)
dhint
) or cumulative probabilites (phint
) should be computed (can be a single number). If range
is NULL (default) then probabilities will be returned over the entire range of possible values.
dbint
, pbint
, and qbint
return a data frame with two columns: v, the intersection size, and p, the associated p-values. rbint
returns an integer vector of random samples based on the binomial intersection distribution.
Hyperintersection
, hint.test
, hint.dist.test
, plotDistr
, Hyperdistinct
.
## Generate the distribution of intersections sizes:
dd <- dbint(20, c(10, 12, 11, 14))
## Restrict the range of intersections.
dd <- dbint(20, c(10, 12), range = 0:5)
## Generate cumulative probabilities.
pp <- pbint(29, c(15, 8), vals = 5)
pp <- pbint(29, c(15, 8), vals = 2, upper.tail = FALSE)
## Extract quantiles:
qq <- qbint(0.15, 23, c(12, 10))
## Generate random samples from Binomial intersection distributions.
rr <- rbint(num = 10, 18, c(9, 14))
Run the code above in your browser using DataLab