Description
Function generating the S-weights for OLS estimand, with controls.
Usage
olsj(X, components, treat)
Arguments
X
Matrix of covariates, including the treatment indicator.
components
Vector of variable names of which user wants the
S-weights for.
treat
Variable name for the treatment indicator.
Value
A list of two vectors: one is the weight for D = 0, the
other is the weight for D = 1.