This function generates the matrix and vectors associated with the monotonicity constraints declared by the user. It takes in a grid of the covariates on which the shape constraints are defined, and then calculates the values of the MTR and MTE over the grid. The matrices characterizing the monotonicity conditions can then be obtained by taking first differences over the grid of the unobservable term, within each set of values in the grid of covariate values.
genmonoA(
A0,
A1,
sset,
uname,
gridobj,
gstar0,
gstar1,
m0.dec,
m0.inc,
m1.dec,
m1.inc,
mte.dec,
mte.inc,
solution.m0.min = NULL,
solution.m1.min = NULL,
solution.m0.max = NULL,
solution.m1.max = NULL,
audit.tol,
direct
)
the matrix of values from evaluating the MTR for control observations over the grid generated to perform the audit. This matrix will be incorporated into the final constraint matrix for the monotonicity conditions.
the matrix of values from evaluating the MTR for control observations over the grid generated to perform the audit. This matrix will be incorporated into the final constraint matrix for the monotonicity conditions.
a list containing the point estimates and gamma components associated with each element in the S-set.
Name of unobserved variable.
a list containing the grid over which the monotonicity and boundedness conditions are imposed on.
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.
boolean, indicating whether the MTR for the control group is monotone decreasing.
boolean, indicating whether the MTR for the control group is monotone increasing.
boolean, indicating whether the MTR for the treated group is monotone decreasing.
boolean, indicating whether the MTR for the treated group is monotone increasing.
boolean, indicating whether the MTE is monotone decreasing.
boolean, indicating whether the MTE is monotone increasing.
vector, the coefficients for the MTR for
D = 0
corresponding to the lower bound of the target
parameter. If passed, this will initiate checks of shape
constraints.
vector, the coefficients for the MTR for
D = 1
corresponding to the lower bound of the target
parameter. If passed, this will initiate checks of shape
constraints.
vector, the coefficients for the MTR for
D = 0
corresponding to the upper bound of the target
parameter. If passed, this will initiate checks of shape
constraints.
vector, the coefficients for the MTR for
D = 1
corresponding to the upper bound of the target
parameter. If passed, this will initiate checks of shape
constraints.
feasibility tolerance when performing the
audit. By default to set to be equal 1e-06
. This
parameter should only be changed if the feasibility tolerance
of the solver is changed, or if numerical issues result in
discrepancies between the solver's feasibility check and the
audit.
boolean, set to TRUE
if the direct MTR
regression is used.
constraint matrix for the LP/QCQP problem. The matrix pertains only to the monotonicity conditions on the MTR and MTE declared by the user.