Description Usage Arguments Value
This function selects which points from the audit grid should be included into the original grid. Both the constraint grid and audit grid are represented as constraints in an LP/QCQP problem. This function selects which points in the audit grid (i.e. which rows in the audit constraint matrix) should be added to the constraint grid (i.e. should be appended to the constraint matrix).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | selectViolations(
diffVec,
audit.add,
lb0seq,
lb1seq,
lbteseq,
ub0seq,
ub1seq,
ubteseq,
mono0seq,
mono1seq,
monoteseq,
mbmap
)
|
diffVec |
numeric vector, with a positive value indicating a violation of a shape constraint. |
audit.add |
integer, the number of points from the audit grid
to add to the initial for each constraint type. For instance, if
there are 5 different kinds of constraints imposed, and
|
lb0seq |
integer vector, indicates which rows in the audit constraint matrix correspond to the lower bound for m0. |
lb1seq |
integer vector, indicates which rows in the audit constraint matrix correspond to the lower bound for m1. |
lbteseq |
integer vector, indicates which rows in the audit constriant matrix correspond to the lower bound for the treatment effect. |
ub0seq |
integer vector, indicates which rows in the audit constraint matrix correspond to the upper bound for m0. |
ub1seq |
integer vector, indicates which rows in the audit constraint matrix correspond to the upper bound for m1. |
ubteseq |
integer vector, indicates which rows in the audit constriant matrix correspond to the upper bound for the treatment effect. |
mono0seq |
integer matrix, indicates which rows in the audit constraint matrix correspond to the monotonicity conditions for m0, and whether the constraint is increasing (+1) or decreasing (-1). |
mono1seq |
integer matrix, indicates which rows in the audit constraint matrix correspond to the monotonicity conditions for m1, and whether the constraint is increasing (+1) or decreasing (-1). |
monoteseq |
integer matrix, indicates which rows in the audit constraint matrix correspond to the monotonicity conditions for the treatment effect, and whether the constraint is increasing (+1) or decreasing (-1). |
mbmap |
integer vector, indexes the X-value associated with each row in the audit constraint matrix. |
The audit grid is represented using a set of constraint matrices. Each point in the audit grid corresponds to a set of rows in the constraint matrices. The function simply returns the vector of row numbers for the points from the audit grid whose corresponding constraints should be added to the original LP/QCQP problem (i.e. the points to add to the original grid).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.