contribution_var_name#
- property EventAdditiveEffect.contribution_var_name: str[source]#
Name of the posterior deterministic holding this effect’s contribution.
Used by
MMM.compute_counterfactual_contributions_dataset()to locate the effect’s linear-predictor contribution and include it in the decomposition. The default assumes the effect registersf"{self.prefix}_effect_contribution"(the convention used byLinearTrendEffectandEventEffect); effects that register a different name must override this property.- Raises:
NotImplementedErrorIf the effect has no
prefixattribute and does not override this property.