Compute potential outcome difference in means for a single assignment under a hypothesized tau in base R
compute_diff_at_tau_for_oneW_R(Wprime, obsY, obsW, tau)Scalar difference in means for the assignment Wprime.
A 0/1 assignment vector for which to compute the diff in means.
Observed outcome vector.
Observed assignment vector.
The hypothesized true effect for the shift in outcomes under treatment.