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.
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
andMixedModels.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.