create_event_mu_effect#
- pymc_marketing.mmm.additive_effect.create_event_mu_effect(df_events, prefix, effect)[source]#
Create an event effect for the MMM.
This class has the ability to create data and mean effects for the MMM model.
- Parameters:
- df_events
pd.DataFrame
- The DataFrame containing the event data.
name
: name of the event. Used as the model coordinates.start_date
: start date of the eventend_date
: end date of the event
- prefix
str
The prefix to use for the event effect and associated variables.
- effect
EventEffect
The event effect to apply.
- df_events
- Returns:
MuEffect
The event effect which is used in the MMM.