load_california

data.load_california()

Load the California Proposition 99 tobacco panel with rook-contiguity weights.

The panel covers 39 U.S. states over 1970-2000 with per-capita cigarette sales (cigsale) as the outcome and the retail cigarette price (retprice) as a covariate. California passed Proposition 99 in 1988, so treated is 1 for California from 1988 onward (18 pre-treatment years, 13 post-treatment years, 38 donors). spatial_w is California’s rook-contiguity row over the donors (only Nevada shares a land border); spatial_W is the binary rook adjacency among the donors.

Returns

Name Type Description
SpillPanel The panel, spatial weights, and column metadata. Use :meth:SpillPanel.config_kwargs to feed it to :class:scspill.SCSPILLConfig directly.

Examples

from scspill.data import load_california

panel = load_california()
panel.df.head()
panel.spatial_w["Nevada"]   # 1.0 -- the only contiguous donor