InteractiveFixedEffectsSyntheticControl.compose_result#
- InteractiveFixedEffectsSyntheticControl.compose_result(*, unit_intercept, time_intercept, loadings, factors, shrinkage_state)[source]#
Compose the frozen result from component draws.
The untreated counterfactual at each time is the additive unit intercept plus the additive time intercept plus the loading-factor product. Impact uses
WidePanel.impacts().scoreuses pre-period treated outcomes only. This method does not update shrinkage from treated post-intervention outcomes and does not select a rank.- Parameters:
unit_intercept (
DataArray) – Draws with dimensionschain,draw, andtreated_units.time_intercept (
DataArray) – Draws with dimensionschain,draw, andobs_ind.loadings (
DataArray) – Per-treated-unit loadings. Thefactorsaxis has lengthmax_factors.factors (
DataArray) – Shared factors with dimensionschain,draw,obs_ind, andfactors.shrinkage_state (
DataArray) – One positive scale per factor, dimensionschain,draw, andfactors.
- Returns:
Predictions, impacts, pre-period score, and shrinkage state.
- Return type: