Hierarchical model and pandas dataframe

It depends on the actual structure of the model. It is not the same to have all groups be independent and one “level” above the observations than to have three levels and some groups be constrained by the higher level groups or (perish the thought) all 10 had a hierarchical relation generating 10 levels.

References that I think will be useful: Multi-Multilevel Modeling and Bambi 0.5.0 is out

2 Likes