This function is only used when the direct MTR regression procedure is used. This function simply constructs the quadratic constraint, and adds it to the LP problem defined by the linear optimization problem for the bounds and the linear shape constraints.
qpSetupBound(
env,
g0,
g1,
criterion.tol,
criterion.min,
rescale = FALSE,
setup = TRUE
)
environment containing the matrices defining the LP problem.
set of expectations for each terms of the MTR for the control group.
set of expectations for each terms of the MTR for the control group.
non-negative scalar, determines how much the quadratic constraint should be relaxed by. If set to 0, the constraint is not relaxed at all.
minimum of (SSR - SSY) of a linear regression with shape constraints.
boolean, set to TRUE
if the MTR components
should be rescaled to improve stability in the LP/QP/QCP
optimization.
boolean, set to TRUE
if the QP problem should
be set up for solving the bounds, which includes the quadratic
constraint. Set to FALSE
if the quadratic constraint
should be removed.
A list of matrices and vectors necessary to define an LP problem for Gurobi or MOSEK.