Open fcorowe opened 2 years ago
Just had a quick look at this and agree: it would be great to add functions for calculating generalised linear mixed models (GLMM) to capture the skewed nature of OD data. Looking at your examples/discussion, it seems the glmmTMB
package is a solid framework for that and allows zero-inflated models. Happy to discuss how to add functionality for that. First we should add support for basic linear models and non-linear models for calculating optimal values in gravity models, right? Then we can add more advanced functions including for GLMMs. I'm also interested in GLMMs implemented in the brms
package: https://oliviergimenez.github.io/blog/glmm-brms/
Yes, let's enhance the support for linear and non-linear models and then turn our efforts to more advanced techniques. Agree - it would be excellent to do this in the brms
framework. I think it will be a main approach going forward.
Heads-up @fcorowe discussing this with @sebnemEr, a statistician based at University of Cape Town and doing a research visit now, she's made good progress. One for the paper and to discuss later in September!
Some relevant code here: https://github.com/Robinlovelace/simodels/issues/40
There are at least two advantages of enabling this approach:
A short discussion of existing packages that could be used here