calibrate | R Documentation |
The calibrate()
function solves a convex program with linear equality constraints determined by the
constraint matrix constraint
, the estimand (estimand
), and the sampling weights (base_weights
).
The function calibrate()
provides a more direct means to solving the convex optimization program. However,
the constraint matrix and target margins must be determined by the user.
calibrate(
constraint,
target,
distance = c("entropy", "binary", "shifted"),
base_weights = NULL,
coefs_init = NULL,
optim_ctrl = list(maxit = 500, reltol = 1e-10),
...
)
constraint |
a matrix that forms the basis of a linear subspace which define the equality constraints of the convex program. |
target |
the target margins of the linear equality constraints. This vector
should have a length equal to the number of columns in |
distance |
the Bregman distance to be optimized. Can either be "entropy" for the relative entropy, "binary" for the binary relative entropy, or "shifted" for the shifted relative entropy. |
base_weights |
a vector of optional base weights with length equal to the
number of rows in |
coefs_init |
the optional initialization values for the dual variables. Default is a vector of zeros with length
equal to number of columns in |
optim_ctrl |
a list of arguments that will be passed to |
... |
additional arguments. |
Censor Y, Zenios SA (1998). Parallel Optimization: Theory, Algorithms, and Applications. 1st ed. New York: Oxford University Press.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.