negationCheck {ivmte} | R Documentation |
Check if custom weights are negations of each other
Description
This function checks whether the user-declared weights for treated and control groups are in fact negations of each other. This is problematic for the GMM procedure when accounting for estimation error of the target weights.
Usage
negationCheck(
data,
target.knots0,
target.knots1,
target.weight0,
target.weight1,
N = 20
)
Arguments
data |
data set used for estimation. The comparisons are made only on values in the support of the data set. |
target.knots0 |
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 |
target.knots1 |
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 |
target.weight0 |
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
|
target.weight1 |
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
|
N |
integer, default set to 20. This is the maxmimum number of
points between treated and control groups to compare and
determine whether or not the weights are indeed negations of
one another. If the data set contains fewer than |
Value
boolean. If the weights are negations of each other,
TRUE
is returned.