This function estimates bounds on treatment effect parameters, following the procedure described in Mogstad, Torgovitsky (2017). Of the target parameters, the user can choose from the ATE, ATT, ATU, LATE, and generalized LATE. The user is required to provide a polynomial expression for the marginal treatment responses (MTR), as well as a set of regressions. By restricting the set of coefficients on each term of the MTRs to be consistent with the regression estimates, the function is able to restrict itself to a set of MTRs. The bounds on the treatment effect parameter correspond to finding coefficients on the MTRs that maximize their average difference.
ivmteEstimate(ivlike, data, subset, components, propensity,
link = "logit", treat, m0, m1, vars_y, vars_mtr, terms_mtr0,
terms_mtr1, splinesobj, uname = u, target, target.weight0,
target.weight1, target.knots0 = NULL, target.knots1 = NULL, late.Z,
late.from, late.to, late.X, eval.X, genlate.lb, genlate.ub,
obseq.tol = 0.05, grid.nu = 20, grid.nx = 20, audit.nx = 20,
audit.nu = 20, audit.max = 10, audit.tol = 1e-08, m1.ub, m0.ub,
m1.lb, m0.lb, mte.ub, mte.lb, m0.dec, m0.inc, m1.dec, m1.inc, mte.dec,
mte.inc, lpsolver = NULL, point = FALSE, noisy = TRUE,
seed = 12345)
formula or vector of formulas used to specify the regressions for the IV-like estimands.
data.frame
used to estimate the treatment
effects.
single subset condition or list of subset conditions
corresponding to each IV-like estimand. The input must be
logical. See l
on how to input the argument. If
the user wishes to select specific rows, construct a binary
variable in the data set, and set the condition to use only
those observations for which the binary variable is 1, e.g. the
binary variable is use
, and the subset condition is
use == 1
.
a list of vectors of the terms/components from
the regressions specifications we want to include in the set of
IV-like estimands. To select the intercept term, include in the
vector of variable names, `intercept'. See l
on
how to input the argument. If no components for a IV
specification are given, then all components from that IV
specification will be included.
formula or variable name corresponding to propensity to take up treatment. If a formula is declared, then the function estimates propensity score according to the formula and link specified. If a variable name is declared, then the corresponding column in the data is taken as the vector of propensity scores.
name of link function to estimate propensity score. Can
be chosen from linear
, probit
, or logit
.
Default is set to "logit".
variable name for treatment indicator.
one-sided formula for marginal treatment response
function for control group. Splines can also be incorporated
using the expression "uSplines(degree, knots, intercept)". The
'intercept' argument may be omitted, and is set to TRUE
by default.
one-sided formula for marginal treatment response
function for treated group. Splines can also be incorporated
using the expression "uSplines(degree, knots, intercept)". The
'intercept' argument may be omitted, and is set to TRUE
by default.
character, variable name of observed outcome variable.
character, vector of variables entering into
m0
and m1
.
character, vector of terms entering into
m0
.
character, vector of terms entering into
m1
.
list of spline components in the MTRs for treated
and control groups. Spline terms are extracted using
removeSplines
.
variable name for unobservable used in declaring MTRs.
target parameter to be estimated. Currently function
allows for ATE ("ate
"), ATT ("att
"), ATU
("atu
"), LATE ("late
"), and generalized LATE
("genlate
").
user-defined weight function for the control
group defining the target parameter. A list of functions can be
submitted if the weighting function is in fact a spline. The
arguments of the function should be variable names in
data
. If the weight is constant across all observations,
then the user can instead submit the value of the weight
instead of a function.
user-defined weight function for the treated
group defining the target parameter. A list of functions can be
submitted if the weighting function is in fact a spline. The
arguments of the function should be variable names in
data
. If the weight is constant across all observations,
then the user can instead submit the value of the weight
instead of a function.
user-defined set of functions defining the
knots associated with splines weights for the control
group. The arguments of the function should consist only of
variable names in data
. If the knot is constant across
all observations, then the user can instead submit the value of
the weight instead of a function.
user-defined set of functions defining the
knots associated with splines weights for the treated
group. The arguments of the function should be variable names
in data
. If the knot is constant across all
observations, then the user can instead submit the value of the
weight instead of a function.
vector of variable names used to define the LATE.
baseline set of values of Z used to define the LATE.
comparison set of values of Z used to define the LATE.
vector of variable names of covariates which we condition on when defining the LATE.
numeric vector of the values at which we condition
variables in late.X
on when estimating the LATE.
lower bound value of unobservable u for estimating generalized LATE.
upper bound value of unobservable u for estimating generalized LATE.
threshold for violation of observational equivalence. The threshold enters in multiplicatively. Thus, a value of 0 corresponds to no violation of observational equivalence other than statistical noise, and the assumption that the model is correctly specified.
number of evenly spread points in the interval [0, 1] of the unobservable u used to form the grid for imposing shape restrictions on the MTRs.
number of evenly spread points of the covariates to use to form the grid for imposing shape restrictions on the MTRs.
number of points on the covariates space to audit in each iteration of the audit procedure.
number of points in the interval [0, 1], corresponding to the normalized value of the unobservable term, to audit in each iteration of the audit procedure.
maximum number of iterations in the audit procedure.
tolerance for determining when to end the audit procedure.
numeric value for upper bound on MTR for treated group. By default, this will be set to the largest value of the observed outcome in the estimation sample.
numeric value for upper bound on MTR for control group. By default, this will be set to the largest value of the observed outcome in the estimation sample.
numeric value for lower bound on MTR for treated group. By default, this will be set to the smallest value of the observed outcome in the estimation sample.
numeric value for lower bound on MTR for control group. By default, this will be set to the smallest value of the observed outcome in the estimation sample.
numeric value for upper bound on treatment effect paramter of interest.
numeric value for lower bound on treatment effect paramter of interest.
logical, equal to TRUE if we want MTR for control group to be weakly monotone decreasing.
logical, equal to TRUE if we want MTR for control group to be weakly monotone increasing.
logical, equal to TRUE if we want MTR for treated group to be weakly monotone decreasing.
logical, equal to TRUE if we want MTR for treated group to be weakly monotone increasing.
logical, equal to TRUE if we want the MTE to be weakly monotone decreasing.
logical, equal to TRUE if we want the MTE to be weakly monotone decreasing.
name of the linear programming package in R used to obtain the bounds on the treatment effect.
boolean, default set to FALSE
. Set to
TRUE
if it is believed that the treatment effects are
point identified. If set to TRUE
, then a GMM procedure
is implemented to estimate the treatment effects. Shape
constraints on the MTRs will be ignored under point
identification.
boolean, default set to TRUE
. If TRUE
,
then messages are provided throughout the estimation
procedure. Set to FALSE
to suppress all messages,
e.g. when performing the bootstrap.
integer, the seed that determines the random grid in the audit procedure.
Returns a list of results from throughout the estimation procedure. This includes all IV-like estimands; the propensity score model; bounds on the treatment effect; the estimated expectations of each term in the MTRs; the components and results of the LP problem.
The estimation procedure relies on the propensity to take up treatment. The propensity scores can either be estimated as part of the estimation procedure, or the user can specify a variable in the data set already containing the propensity scores.
Constraints on the shape of the MTRs and marginal treatment effects (MTE) can be imposed by the user, also. Specifically, bounds and monotonicity restrictions are permitted. These constraints are only enforced over a subset of the data. However, an audit procedure randomly selects points outside of this subset to determine whether or not the constraints hold. The user can specify how stringent this audit procedure is using the function arguments.