Residualize y and d (only called when doing treatment effect estimation)
residualize(obj, y, X, d, sample)
Arguments
obj |
an EstimatorPlan object |
y |
N-vector |
X |
NxK matrix |
d |
NULL, N-vector, or NxM matrix (if multiple treatments) |
sample |
one of 'tr' or 'est' |
Value
list(y=, d=)