make_w
simulate.make_w(N, treated=(0, 1, 2, 3))Build the indicator exposure vector linking the treated unit to selected controls.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| N | int | Number of control units. | required |
| treated | int or sequence of int | Zero-based indices of the exposed controls. The default matches the paper’s simulation design (the first four donors exposed, R’s 1:4); note the R function default is a single exposed donor. |
(0, 1, 2, 3) |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | A 0/1 vector of length N. |