Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend to incorporate models in a GLMM framework #23

Open
fcorowe opened this issue Jun 14, 2022 · 2 comments
Open

Extend to incorporate models in a GLMM framework #23

fcorowe opened this issue Jun 14, 2022 · 2 comments

Comments

@fcorowe
Copy link
Contributor

fcorowe commented Jun 14, 2022

There are at least two advantages of enabling this approach:

  1. Poisson models are often used to deal the skeness nature of flow count data, but these data tend to overdispersion which violates the equidispersion assumption of the Poisson model. Negative binomial models can handle this issue.
  2. GLMMs provide flexibility to capture heterogeneity across population groups, origins and destinations.

A short discussion of existing packages that could be used here

@fcorowe fcorowe changed the title Extend to incorporate models in a GLMM framework Extend to incorporate models in a GLMM framework label:enhancement Jun 14, 2022
@fcorowe fcorowe changed the title Extend to incorporate models in a GLMM framework label:enhancement Extend to incorporate models in a GLMM framework Jun 14, 2022
@Robinlovelace
Copy link
Owner

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/

@fcorowe
Copy link
Contributor Author

fcorowe commented Jun 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants