Function generating the S-weights for OLS estimand, with controls.
olsj(X, X0, X1, components, treat, order = NULL)
Matrix of covariates, including the treatment indicator.
Matrix of covariates, once fixing treatment to be 1.
Matrix of covariates, once fixing treatment to be 0.
Vector of variable names of which user wants the S-weights for.
Variable name for the treatment indicator.
integer, default set to NULL
. This is simply an
index of which IV-like specification the estimate corresponds
to.
A list of two vectors: one is the weight for D = 0, the other is the weight for D = 1.