SCSPILL

estimators.scspill.SCSPILL(config)

Spillover-aware synthetic control estimator (model sar).

Fits the Bayesian spatial-autoregressive spillover model of Sakaguchi & Tagawa (2026) – scspill’s first and, today, only model. Select it with method="sar"; that is the default, so existing code needs no change.

Parameters

Name Type Description Default
config SCSPILLConfig or dict The estimation configuration; a dict is coerced into :class:scspill.config_models.SCSPILLConfig. required

Examples

from scspill import SCSPILL
from scspill.data import load_california

panel = load_california()
result = SCSPILL(
    {**panel.config_kwargs(), "m_iter": 2000, "burn": 1000, "seed": 42}
).fit()
result.att, result.att_ci
result.rho_hat, result.rho_ci
result.spillover_panel["Nevada"]

Methods

Name Description
fit Estimate the model and return standardized results.

fit

estimators.scspill.SCSPILL.fit()

Estimate the model and return standardized results.

Runs the balance check, panel preparation, the two-step sampler, the posterior effect sweep, and (optionally) the default plot panel.

Returns

Name Type Description
SCSPILLResults

Raises

Name Type Description
ScspillDataError On invalid panel data or misaligned spatial weights.
ScspillEstimationError On sampler or effect-computation failure.
ScspillPlottingError On plot generation failure (only when display_graphs).