gengrid: Generating the grid for the audit procedure

Description Usage Arguments Value

View source: R/monobound.R

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

1
gengrid(index, xsupport, usupport, uname)

Arguments

index

a vector whose elements indicate the rows in the matrix xsupport to include in the grid.

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.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.