This function generates the Gamma moments for a given set of weights. This funciton is written specifically for tests.
genGammaSplinesTT(distr, weight, zvars, u1s1, u0s1, u0s2, target = FALSE,
...)
data.frame, the distribution of the data.
function, the S-function corresponding to a particular IV-like estimand.
vector, string names of the covariates, other than the intercept and treatment variable.
matrix, the spline basis for the treated group ("u1") corresponding to the first (and only) spline specification ("s1").
matrix, the spline basis for the control group ("u0") corresponding to the first spline specification ("s1").
matrix, the spline basis for the control group ("u0") corresponding to the second spline specification ("s2").
boolean, set to TRUE
if the gamma moment being
generated corresponds to the target parameter.
all other arguments that enter into weight
,
excluding the argument d
for treatment indicator.
vector, the Gamma moments associated with weight
.