paul-buerkner / brms

brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan
https://paul-buerkner.github.io/brms/
GNU General Public License v2.0
1.28k stars 184 forks source link

Generalized Poisson distribution #739

Open paul-buerkner opened 5 years ago

paul-buerkner commented 5 years ago

The generalized poisson distribution has some potential when it comes to the estimation of underdispersed count data and is much more efficient to evaluate the the conway-maxwell poisson distribution. It may have trouble due to its complex support and it remains to be evaluated whether this distribution is robust enough to be implemented as a native family in brms. More information about the generalized poisson distribution may for instance be found at https://rdrr.io/cran/VGAM/man/genpoisson.html.

bachlaw commented 5 years ago

Paul, I agree this would be a terrific add. With glmmTMB, the generalized poisson provides very good fits fairly quickly to overdispersed data, and as you point out can theoretically handle underdispersed data too, whereas the CMP takes forever, and while it can be more accurate it is tough to justify the cost. I recognize that glmmTMB uses optimization rather than sampling, but the generalized poisson seems to offer a flexible solution for both over and underdispersion. In terms of programming, I have had a hard time findiing helpful examples. INLA has an experimental version under the likelihood of gpoisson that includes a PDF vignette discussing the parameterization at some length. It doesn't seem to run reliably at the moment. There is also a paper discussing a zero-inflated implementation in BUGS, but with more math than code.

kdarras commented 4 years ago

After looking up how I could fit underdispersed count data and seeing that very few tools seem to do it, I also think this would be a great feature.

rbcavanaugh commented 4 years ago

Hi Paul - any updates on a generalized poisson distribution? thanks -

paul-buerkner commented 4 years ago

Unfortunately not. It is not very high on my priority list of brms features at the moment.

rbcav notifications@github.com schrieb am Fr., 31. Juli 2020, 16:06:

Hi Paul - any updates on a generalized poisson distribution? thanks -

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paul-buerkner/brms/issues/739#issuecomment-667137273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCW2AE4EJEYZ253WUSRXJTR6LFV7ANCNFSM4IPV6LJQ .

FErixon commented 1 year ago

Hi Paul, any development on the implementation of the generalized Poisson distribution in brms or any advice on how one might go about implementing it for oneself? Cheers!

paul-buerkner commented 1 year ago

Unfortunately not yet at the moment.

FErixon @.***> schrieb am Fr., 30. Juni 2023, 15:24:

Hi Paul, any development on the implementation of the generalized Poisson distribution in brms or any advice on how one might go about implementing it for oneself? Cheers!

— Reply to this email directly, view it on GitHub https://github.com/paul-buerkner/brms/issues/739#issuecomment-1614648629, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCW2AAPJZ365MH5XDTTLPTXN3HRHANCNFSM4IPV6LJQ . You are receiving this because you authored the thread.Message ID: @.***>