sar.structures.SARInputs

utils.scspill_helpers.sar.structures.SARInputs(
    Y0,
    Yc,
    T0,
    X=None,
    treated_label,
    control_labels,
    time_labels,
    covariate_names=(),
    treated_labels=(),
    Yt=None,
    Wn,
    wn,
    W_raw,
    w_raw,
)

Prepared estimation inputs for the sar model.

Adds the spatial structure to :class:PanelInputs.

Attributes

Name Type Description
Wn np.ndarray Row-normalized control-to-control spatial weight matrix, (N, N).
wn np.ndarray Sum-normalized treated-to-control exposure vector, (N,).
W_raw, w_raw np.ndarray The user-supplied spatial weights before normalization (label-aligned).