Create a design with spillovers
Builds a design with
N_groups groups each containing
Potential outcomes exhibit spillovers: if any individual in a group receives treatment,
the effect is spread equally among members of the group.
spillover_designer(N_groups = 80, N_i_group = 3, sd_i = 0.2, gamma = 2)
An integer. Number of groups.
Number of units in each group. Can be scalar or vector of length
A nonnegative number. Standard deviation of individual-level shock.
A number. Parameter that controls whether spillovers within groups substitute or complement each other. See `Details`.
A simple spillover design.
gamma controls interactions between spillover effects.For
gamma=1 for every $1 given to a member of a group, each member receives $1*
N_i_group no matter how many others are already treated.
gamma>1 (<1) for every $1 given to a member of a group, each member receives an amount that depends negatively (positively) on the number already treated.
The default estimand is the average difference across subjects between no one treated and only that subject treated.
# Generate a simple spillover design using default arguments: spillover_design <- spillover_designer()