Learn R Programming

fastrerandomize (version 0.3)

compute_diff_at_tau_for_oneW_R: Compute potential outcome difference in means for a single assignment under a hypothesized tau in base R

Description

Compute potential outcome difference in means for a single assignment under a hypothesized tau in base R

Usage

compute_diff_at_tau_for_oneW_R(Wprime, obsY, obsW, tau)

Value

Scalar difference in means for the assignment Wprime.

Arguments

Wprime

A 0/1 assignment vector for which to compute the diff in means.

obsY

Observed outcome vector.

obsW

Observed assignment vector.

tau

The hypothesized true effect for the shift in outcomes under treatment.