This function takes in the matrix of values of the MTR evaluated
over the grid generated for the audit procedure. The grid is
ordered according to the covariates first, and then by the
unobservables (this is done in by genmonoA
). This
function takes the first difference of the unobservables within
each set of values for the covariates. This is sufficient to
generate the monotonicity constraint matrix.
diffA(A, monogrid, sn, d, ndcols)
a design matrix that evaluates the MTRs over the grid generated for the audit procedure.
the grid generated for the audit procedure, sorted by the values of the covariates, and monotone increasing in the unobservable.
the number of binding constraints in the S-set.
indicator for treatment group (d=1
) versus control
group (d = 0
).
number of terms in the MTR for the other experimental group. This is used to generate a matrix that is of the correct dimension.
a matrix representing the monotonicity restrictions.