Closed filpia closed 3 years ago
Hi @filpia,
Patsy does not support formulas for mixed-effects models. Also, it is no longer under active development. In the meantime, you can use formulae if you want to use mixed-effects formulas right now. But in the long term, I would recommend using Formulaic, because it is the one that is going to be actively developed and mainatined. It does not support mixed-effects formulas yet, but it is going to support it soonish.
Cross-posting from StackOverflow.
I'm trying to yield a design matrix similar to the example below. I can specify I want a random intercept for each group
k
but cannot get a random intercept and random slope onx
for each groupk
unlessx
andk
are both of typenp.int64
. It breaks when the pair are of types(int64, float64)
or(float64, float64)
.Breaking example
Working example