Multiple Membership Multilevel Model

I was wondering if there was a way to implement a multiple membership model. I am new to pymc3 and I couldn’t find anything in the docs that said one could.

For reference he’s a good paper that talks about multiple membership models. Also here’s a way to do it using MCMCglmm in R.

I’d rather just use python for this project, so if anyone knows a way to implement them in pymc3 or in another python package I’d really appreciate it.

You can formulate it as a hierarchical linear model, you can do a search on this discourse to get started.