FrequencyReachAdditiveEffect.set_data#
- FrequencyReachAdditiveEffect.set_data(mmm, model, X)[source]#
Update reach & frequency data for prediction (e.g. future) dates.
Zero-fills any dates in
model.coords["date"]that are beyond the historical data indf_frequency_reach. Does not mutate the stored DataFrame; construct a new effect instance if historical data change.- Parameters:
- mmm
Model The parent MMM instance.
- model
pm.Model The PyMC model whose
pm.Datanodes will be updated.- X
xr.Dataset The predictor dataset for the prediction window (used to read the new date coordinate).
- mmm