addindicators: adding indicators for exogenous variable

Description Usage Arguments Value

Description

addindicators is an auxiliary function for preparation to implement the GMM inference on your own. It returns a data.frame that contains vectors of the outcome, the treatment, the instrument, and the exogenous variable in addition to vectors of indicators for the exogenous variable. The defined indicator is such as I00 = 1(Z = 0, V = 0). See the package vignette via 'vignette("LATEerror")' for more details.

Usage

1
addindicators(Y, D, Z, V)

Arguments

Y

vector of the outcome

D

vector of the treatment

Z

vector of the instrument

V

vector of the exogenous variable

Value

dataframe with indicators for the exogenous variable


tkhdyanagi/LATEerror documentation built on May 3, 2019, 9:39 p.m.