TuringLang / TuringGLM.jl

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

Data API #15

Closed storopoli closed 2 years ago

storopoli commented 2 years ago

This PR implements the data APIs that recover the fixed and random effect matrices and vectors from a @formula macro.

I tried to make it from scratch but I was overwhelmed by the macro obscure magic necessary. So I resorted to having StatsModels.jl and MixedModels.jl as dependencies for parsing the formula thing and using some of the scaffolding inner functions to get access to the underlying data.

I also added GLM.jl since the Likelihood structs for likelihood families and link functions will come in handy for the next PR: likelihood functions.

Related to #2.