leeper / margins

An R Port of Stata's 'margins' Command
https://cloud.r-project.org/package=margins
Other
260 stars 39 forks source link

[New model request] glmtoolbox::glmgee #193

Open adrianolszewski opened 2 weeks ago

adrianolszewski commented 2 weeks ago

Dear @leeper

Would you, please, consider adding the glmtoolbox package (mostly the glmgee() function; but adding others would be great too!) to marginaleffects?

This package provides the predict() functions for all supported models: (weighted) GEE, GNM, GLM, and 0-inflated models.

A few words on "why"? In my opinion, the glmtoolbox makes a new solid standard for GEE estimation in R. This package offers reliable estimation and lots of tools absent in other packages. The current geepack package seems really abandoned. Not much happens there, old (2-3 year-old) issues remain unclosed, serious bugs are unfixed, the routine often crashes for unstructured covariance, which is a big problem. And conversely, sometimes the system is completely singular, while this one ignores it and fits instead of warning. I know geepack a very popular package and historically among the very first implementations (right after "gee"), but nowadays there are new, reliable implementations with great additions. glmtoolbox is one of them. I am using it at work and wouldn't replace it by anything else, finally not afraid of crashing my session. It's gaining popularity and is now officially supported also by the emmeans, insights and parameters packages.

Dear @bbolker In the CRAN summary your name is mentioned as the current maintainer of margins. The "bug report" links to the "Issues" site but this panel is unavailable in your branch (only "pull requests"). That's why I'm tagging you here as well.

bbolker commented 2 weeks ago

I don't think @leeper has time to work on this package any more, and I don't really have time to do anything beyond bare-bones maintenance either - I only added myself as maintainer in order to get the package back on CRAN. Would you be willing to write this extension yourself and submit a pull request?

(I will open the issues tab on my fork ...)