Learn R Programming

DesignLibrary (version 2.0.0)

spillover_designer: Create a two-arm design with spillovers within groups

Description

Routes to make_design() with id "spillover": make_design("spillover", N_groups = N_groups, gamma = gamma, ...).

Usage

spillover_designer(
  N_groups = 80,
  N_i_group = 3,
  sd_i = 0.2,
  gamma = 2,
  args_to_fix = NULL
)

Value

A design object.

Arguments

N_groups

Number of groups.

N_i_group

Number of units in each group.

sd_i

Standard deviation of the individual-level shock.

gamma

Curvature of the outcome in the group's treated share.

args_to_fix

Ignored. Present for compatibility with DesignLibrary 0.1.

Details

A unit's outcome depends on the share of its group that is treated, raised to the power gamma. Argument names match DesignLibrary 0.1's spillover_designer. For a design that randomizes saturation, see make_design("randomized_saturation").

See Also

make_design()

Examples

Run this code
spillover_designer(N_groups = 40, gamma = 1)

Run the code above in your browser using DataLab