genGammaSplinesTT {ivmte} | R Documentation |
Generating the Gamma moments for splines, for 'testthat'
Description
This function generates the Gamma moments for a given set of weights. This funciton is written specifically for tests.
Usage
genGammaSplinesTT(distr, weight, zvars, u1s1, u0s1, u0s2, target = FALSE, ...)
Arguments
distr |
data.frame, the distribution of the data. |
weight |
function, the S-function corresponding to a particular IV-like estimand. |
zvars |
vector, string names of the covariates, other than the intercept and treatment variable. |
u1s1 |
matrix, the spline basis for the treated group ("u1") corresponding to the first (and only) spline specification ("s1"). |
u0s1 |
matrix, the spline basis for the control group ("u0") corresponding to the first spline specification ("s1"). |
u0s2 |
matrix, the spline basis for the control group ("u0") corresponding to the second spline specification ("s2"). |
target |
boolean, set to |
... |
all other arguments that enter into |
Value
vector, the Gamma moments associated with weight
.