SCSPILLInputs

utils.scspill_helpers.structures.SCSPILLInputs(
    Y0,
    Yc,
    Wn,
    wn,
    W_raw,
    w_raw,
    T0,
    X,
    treated_label,
    control_labels,
    time_labels,
    covariate_names=(),
)

Prepared estimation inputs for the SCSPILL estimator.

Attributes

Name Type Description
Y0 np.ndarray Treated-unit outcome path, shape (T,).
Yc np.ndarray Control-unit outcome matrix, shape (T, N) in control_labels column order.
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).
T0 int Number of pre-treatment periods.
X np.ndarray or None Covariate cube (T, N, K) for the control units, or None.
treated_label Any Label of the treated unit.
control_labels tuple Donor labels in column order of Yc / Wn / wn.
time_labels np.ndarray Sorted time labels, length T.
covariate_names tuple of str Names of the covariate columns stacked into X.