This function computes the \(\kappa = \kappa (Z, A, X) = 1 - \frac{A(1-Z)}{1 - \Pr(Z = 1 \mid X)} - \frac{(1-A)Z}{\Pr(Z = 1 \mid X)}\) defined in Abadie, Angrist & Imbens (2002), and Abadie (2003). The expected value of \(\kappa\) is the probability of complier.
abadie_k(z, a, ps)
numeric A binary instrument, e.g., randomized treatment assignment.
numeric The actual received treatment, must be the same length as z
.
numeric The propensity scores \(\Pr(Z = 1 \mid X)\).
numeric The formula defined above.