Unexpected increase in computation time when data size increases

Thanks a lot @tcapretto, really helpful!

I’ll try mimicing your pymc code, but there is one thing that I do not understand, in your pymc code you use objects that are part of the bambi Model object: _design.common.design_matrix and model._design.group.design_matrix (and also the y values: which are taken from model._design.data.value.values), but when bambi.Model() fails due to not enogh RAM, which it does on a new model I have, then those objects are not available for me. Can you please give some hints on how to create them without using bambi.Model()?

Kind regards, Hans Ekbrand