TuringLang / TuringGLM.jl

Bayesian Generalized Linear models using `@formula` syntax.
https://turinglang.org/TuringGLM.jl/dev
MIT License
70 stars 7 forks source link

fix: ranef formula detection broken in 1.8+ #89

Closed storopoli closed 1 year ago

storopoli commented 1 year ago

Due to changes in the @formula API in StatsModels.jl formula's lhs like (1 + x1 + x2 | group) is no longer a ConstantTerm.

Since TuringGLM.jl doesn't support random-slope terms, I've removed the tests with these kind of formulas.

Additionally, the to access the terms inside a formula, we need to use terms.args instead of terms.args_parsed.