Following the hierarchical configurations and media transformation interface (example here), I think hierarchical models can be supported by similar to current MMM class but with a few modifications. Namely,
make assumptions about the parameter shapes from the media data shape
(date, channel) -> (channel)
(date, channel, geo) -> (channel, geo)
Give flexibility to the user to specify the hierarchical parameters of correct shape
(channel, geo) can be generated in too many ways
For example, the user can just toggle out hierarchical_lam and independent_lam for a hierarchical vs non-hierarchical model.
Will control data also have additional dimensions? Will control data be assumed to have the same dimensions of the media?
Is there a case where dims(Y) $\subset$ dims(media) $\cup$ dims(control)
Note: The way I am building out #679 will work with additional dims. The dimension of the output is just based on the dimensions of the priors which the use would specify
Following the hierarchical configurations and media transformation interface (example here), I think hierarchical models can be supported by similar to current MMM class but with a few modifications. Namely,
For example, the user can just toggle out
hierarchical_lam
andindependent_lam
for a hierarchical vs non-hierarchical model.It would be up to us to pull out the parameters shapes from data shape, do some validation, combine all into model, etc.