gengrid {ivmte} | R Documentation |
Generating the grid for the audit procedure
Description
This function takes in a matrix summarizing the support of the covariates, as well as set of points summarizing the support of the unobservable variable. A Cartesian product of the subset of the support of the covariates and the points in the support of the unobservable generates the grid that is used for the audit procedure.
Usage
gengrid(index, xsupport, usupport, uname)
Arguments
index |
a vector whose elements indicate the rows in the
matrix |
xsupport |
a matrix containing all the unique combinations of the covariates included in the MTRs. |
usupport |
a vector of points in the interval [0, 1], including 0 and 1. The number of points is decided by the user. The function generates these points using a Halton sequence. |
uname |
name declared by user to represent the unobservable term. |
Value
a list containing the grid used in the audit; a vector
mapping the elements in the support of the covariates to
index
.