Description Usage Arguments Value
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.
1 2 3 4 5 6 7 8 9 | qpSetupBound(
env,
g0,
g1,
criterion.tol,
criterion.min,
rescale = FALSE,
setup = TRUE
)
|
env |
environment containing the matrices defining the LP problem. |
g0 |
set of expectations for each terms of the MTR for the control group. |
g1 |
set of expectations for each terms of the MTR for the control group. |
criterion.tol |
non-negative scalar, determines how much the quadratic constraint should be relaxed by. If set to 0, the constraint is not relaxed at all. |
criterion.min |
minimum of (SSR - SSY) of a linear regression with shape constraints. |
rescale |
boolean, set to |
setup |
boolean, set to |
A list of matrices and vectors necessary to define an LP problem for Gurobi or MOSEK.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.