cell-bound | R Documentation |
Compute the lower or upper bound of a cell in a vectorized contingency table.
cell_bound(A, b, side = c("lower", "upper"), strategy = c("lp", "ip"))
cellBound(...)
A |
the configuration matrix of the model defining the fiber |
b |
solution vector in Ax = b (vector of sufficient statistics) |
side |
bound side to compute, "lower" or "upper" |
strategy |
"lp" for linear programming and "ip" for integer programming.
(both use |
... |
... |
an integer
Ruriko Yoshida ruriko.yoshida@uky.edu, David Kahle david@kahle.io
A <- hmat(c(2,2), 1:2)
b <- rep.int(4, 4)
cell_bound(A, b, "lower") # 0
cell_bound(A, b, "upper") # 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.