T_elc | R Documentation |
The Edge-Level Contrast Statistic in Athey et al. (2018). It equals \frac{∑_{i,j\neq i} F_i G_{ij} (1-F_j) W_j Y_i^{obs}}{∑_{i,j\neq i} F_i G_{ij} (1-F_j) W_j} - \frac{∑_{i,j\neq i} F_i G_{ij} (1-F_j) (1-W_j) Y_i^{obs}}{∑_{i,j\neq i} F_i G_{ij} (1-F_j) (1-W_j) }. G is the adjacency matrix and F is the vector of focal indicator.
T_elc(y, z, is_focal)
Athey et al. (2018) Exact p-Values for Network Interference, Equation 5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.