cd.structures.CDInputs

utils.scspill_helpers.cd.structures.CDInputs(
    Y0,
    Yc,
    T0,
    X=None,
    treated_label,
    control_labels,
    time_labels,
    covariate_names=(),
    treated_labels=(),
    Yt=None,
    A,
    spillover_structure,
    affected_labels=(),
)

Prepared estimation inputs for the cd model.

Adds the exposure structure to :class:PanelInputs.

Attributes

Name Type Description
A pd.DataFrame Exposure matrix: one row per unit in unit_labels order (treated units first), one column per effect parameter. Each treated unit’s row is its own direct-effect indicator.
spillover_structure str How A was built (SCSPILLConfig.spillover_structure).
affected_labels tuple Control units with a nonzero row of A: those that may receive a spillover.