make_exposure_map_AS: Create treatment exposure conditions.

Description Usage Arguments Details Value Functions References Examples

View source: R/make_exposure_map_AS.R

Description

Create treatment exposure conditions according to selected exposure mappings.

Usage

1
2
3
make_exposure_map_AS(adj_matrix, tr_vector, hop)

make_exposure_map_full_neighborhood(adj_matrix, tr_vector)

Arguments

adj_matrix

an N * N numeric matrix of 0, 1 entries such as those retuned by make_adj_matrix, or a N * N matrix, where N is the number of units.

tr_vector

a numeric vector of length N of 0, 1 entries such as that retuned by make_tr_vec_permutation with R = 1, or a vector of length N with the treatment assignment.

hop

number; either 1 or 2. If 1 assumes first-degree interference and produces four exposure conditions, if 2 assumes second-degree interference and produces eight exposure conditions.

Details

make_exposure_map_AS produces treatment exposure conditions according to two different exposure mappings. An exposure mapping that assumes that interference happens only through direct peer connections (first-degree interference) which produces four exposure conditions: Direct + Indirect Exposure, Isolated Direct Exposure, Indirect Exposure, No Exposure. And an exposure mapping that assumes second-degree interference which produces eight exposure conditions.

Value

An N * K numeric matrix, where K corresponds to the number of exposure conditions.

Functions

References

Aronow, P.M. & Samii, C. (2017). Estimating average causal effects under general interference, with application to a social network experiment. The Annals of Applied Statistics, 11(4), 1912–1947.

Aronow, P.M. et al. (2020). Spillover effects in experimental data. arXiv preprint, arXiv:2001.05444.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Create an adjacency matrix and a treatment vector:

adj_matrix <- make_adj_matrix(N = 9, model = 'sq_lattice')
tr_vector <- make_tr_vec_permutation(N = 9, p = 0.2, R = 1,
                                     seed = 357)

# Create treatment exposure conditions:

make_exposure_map_AS(adj_matrix, tr_vector, hop = 1)
make_exposure_map_AS(adj_matrix, tr_vector, hop = 2)
make_exposure_map_full_neighborhood(adj_matrix, tr_vector)

szonszein/interference documentation built on Jan. 10, 2022, 6:35 p.m.