cell-bounds: Compute the lower and upper bounds

cell-boundsR Documentation

Compute the lower and upper bounds

Description

Compute the lower and upper bounds of a cell in a vectorized contingency table.

Usage

cell_bounds(A, b, strategy = c("lp", "ip"), start = 1, messaging = FALSE)

cellBounds(...)

Arguments

A

the configuration matrix of the model defining the fiber

b

solution vector in Ax = b (vector of sufficient statistics)

strategy

"lp" for linear programming and "ip" for integer programming. (both use lpSolve::lp())

start

reduce the size of the matrix A, i.e. use A[,start:ncol(A)] instead of A

messaging

TRUE for messages

...

...

Value

a named numeric vector

Author(s)

Ruriko Yoshida ruriko.yoshida@uky.edu, David Kahle david@kahle.io

Examples



A <- hmat(c(2,2), 1:2)
b <- rep.int(4, 4)
cell_bounds(A, b, messaging = TRUE)




dkahle/algstat documentation built on May 23, 2023, 12:29 a.m.