Learn R Programming

ivmte (version 1.0.1)

diffA: Taking first differences of constraint matrices

Description

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.

Usage

diffA(A, monogrid, sn, d, ndcols)

Arguments

A

a design matrix that evaluates the MTRs over the grid generated for the audit procedure.

monogrid

the grid generated for the audit procedure, sorted by the values of the covariates, and monotone increasing in the unobservable.

sn

the number of binding constraints in the S-set.

d

indicator for treatment group (d=1) versus control group (d = 0).

ndcols

number of terms in the MTR for the other experimental group. This is used to generate a matrix that is of the correct dimension.

Value

a matrix representing the monotonicity restrictions.