InteractiveFixedEffectsSyntheticControl.fit#
- InteractiveFixedEffectsSyntheticControl.fit(*, draws=40, tune=80, chains=1, cores=1, random_seed=None, progressbar=False, **sample_kwargs)[source]#
Sample the joint posterior and populate
result.Keyword arguments are forwarded to the control-panel
pymc.sample()call. The treated conditional sample is aligned to those draws: one conditional draw per control-panel draw. Before that sample, the one shared residual scale’s draws are updated from treated pre-period outcomes. The conditional sample uses those updated draws as the loading likelihood scale. It does not resample the scale, the factors, or the time intercepts, and it does not take caller-supplied factor draws.Treated post-intervention outcomes are read only when impacts are aligned, after sampling. Changing them does not change the untreated trajectory.
- Parameters:
draws (
int) – Control-panel posterior draws per chain.tune (
int) – Control-panel tuning steps.chains (
int) – Control-panel chains.cores (
int) – Cores for the control-panel sample.random_seed (
int|None) – Seed for the control-panel sample. The conditional sample uses the next integer when this is set.progressbar (
bool) – Whether PyMC shows a progress bar.**sample_kwargs (
Any) – Extra arguments for the control-panelpymc.sample()call.
- Returns:
The fitted experiment.
- Return type: