Compute residuals for both treatment groups
compute_residuals(A, Y, mu1, mu0, pi)
Arguments
- A
Treatment vector (0 or 1)
- Y
Outcome vector
- mu1
Predicted outcomes under treatment (mu(1, X))
- mu0
Predicted outcomes under control (mu(0, X))
- pi
Propensity scores
Value
List with R1, r1, R0, r0