This is a wrapper function generating the matrices and vectors associated with the monotonicity and boundedness constraints declared by the user. Since this function generates all the components required for the shape constraints, it is also the function that performs the audit. That is, MTR coefficients are passed, then this function will verify whether they satisfy the shape constraints.
genmonoboundA(
pm0,
pm1,
support,
grid_index,
uvec,
splinesobj,
monov,
uname,
m0,
m1,
sset,
gstar0,
gstar1,
m0.lb,
m0.ub,
m1.lb,
m1.ub,
mte.lb,
mte.ub,
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
)
A list of the monomials in the MTR for d = 0.
A list of the monomials in the MTR for d = 1.
a matrix for the support of all variables that enter into the MTRs.
a vector, the row numbers of support
used
to generate the grid preceding the audit.
a vector, the points in the interval [0, 1] that the unobservable takes on.
a list of lists. Each of the inner lists contains details on the splines declared in the MTRs.
name of variable for which the monotonicity conditions applies to.
name declared by user to represent the unobservable term in the MTRs.
one-sided formula for marginal treatment response
function for the control group. The formula may differ from
what the user originally input in ivmte
, as the
spline components should have been removed. This formula is
simply a linear combination of all covariates that enter into
the original m0
declared by the user in
ivmte
.
one-sided formula for marginal treatment response
function for the treated group. The formula may differ from
what the user originally input in ivmte
, as the
spline components should have been removed. This formula is
simply a linear combination of all covariates that enter into
the original m1
declared by the user in
ivmte
.
a list containing the point estimates and gamma components associated with each element in the S-set.
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.
scalar, lower bound on MTR for control group.
scalar, upper bound on MTR for control group.
scalar, lower bound on MTR for treated group.
scalar, upper bound on MTR for treated group.
scalar, lower bound on MTE.
scalar, upper bound on MTE.
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.
a list containing a unified constraint matrix, unified vector of inequalities, and unified RHS vector for the boundedness and monotonicity constraints of an LP/QCQP problem.