Skip to content

[Feature Request]: Switching to glmtoolbox #85

Closed

Description

@adrianolszewski

Feature description

Hello,
Have you, maybe, considered switching to glmtoolbox?
Well, maybe not entirely, by replacing one by the other, but by adding support for it?

Geepack has serious issues unresolved for a long time (dating back 2021), possibly crashing session under waves + unstructured covariance (costed me frustration several times), problem with weighting for pattern other than independence, with spoiled ordgee() function...

While there are over 20 packages for GEE in R (https://lnkd.in/dwyTCECt), each focused on something specific, there's one just most general and suitable for daily use: the glmtoolbox 👑

✔️ the author reacts relatively quickly
✔️ capabilities beat those of geepack totally. To name a few:

👉 families: gaussian, binomial, poisson, gamma, inverse gaussian, negative binomial, tweedie
👉 stationary and non-stationary M-dependent and AR-M-dependent residual covariance structures
👉 correct weighting for MAR (WGEE) - observation and cluster/subject-specific weights
👉 Mancl-DeRouen bias-corrected sandwich for small sample inference! Also: standard sandwich, jacknife, df-adjusted, naive model-based
👉 Model selection criteria like QIC, CIC, RJ, SGPC, GHYC, PAC, AGPC (Akaike-type penalized Gaussian pseudo-likelihood)
👉 Global and local influence diagnostics; Cook's distance, DFBETA, leverage
👉 Comparing nested models - stepwise selection (I never recommend it but if you want it - it is there), based on: QIC, QICU, AGPC, SGPC, Wald's and Score p-values
👉 Pearson, Deviance and Mahalanobis residuals
👉 nonlinear predictors (gnmgee)!

✔️ doesn't crash! warns about unstable estimates 😍
✔️ lots of stuff for the GLM family!
✔️ talks with the following packages - essential for clinical trials (it was my initiative to ask authors of these package for support - and they agreed, adding basic or more extensive support to their packages)

  • broom
  • mice
  • emmeans
  • marginaleffects
  • easystat::insight
  • easystat::parameters
  • ggeffects

Here's the man paper: https://journal.r-project.org/articles/RJ-2023-056/RJ-2023-056.pdf

I've been using this package for a few years at work in clinical trials and I wouldn't switch to geepack even if paid for that: stable, so many options (especially the Mancl-DeRouen cov. estimator), warns about unstable estimation.

Yes, I know that "geepack is a standard", but standards aren't eternal, especially if something new and valuable appears on the horizon.

PS: I really wanted to read the contribution guidelines, but the link https://insightsengineering.github.io/tern.gee/CONTRIBUTING.html says "404 File not found"

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Activity

  1. added
    enhancement
    on May 18, 2026
  2. shajoezhu commented on May 19, 2026

    @shajoezhu
    Contributor

    hi @adrianolszewski , not right now. We work in a very regulatory space, lots of dependency package will require validation, this is not saying no for ever, but we need to consider the effort spend when doing these checks. that said, there is an ongoing effort on package validation led by the validation-hub, i think we can revisit this topic a bit later. thanks

  3. adrianolszewski commented on May 19, 2026

    @adrianolszewski
    Author

    @shajoezhu Thank you very much for your quick response! Yes, that makes sense! I understand the effort; I'm responsible for the validation challenges in our (100% R-based) CRO, dealing with over 400 packages in our work (thankfully not on a daily basis)...

    And - if one day you decide to go this way - that would be awesome to have a viable alternative to the geepack (having unresolved issues important from the clinical trials biostat. perspective; just with date "refreshed" on CRAN...) considering the direct benefits from employing glmtoolbox, MO much better fitting the needs of clinical trials biostatistics (speaking from this very perspective).

    By the way, it's a pity that glmtoolbox is not known wider despite being an incredibly powerful alternative...

    OK, let me close this thread for now to keep the [Issues] section clean, but please keep it on your to-do list. I think it is worth it (no, I'm not the author of this package 😉)

    PS: the package doesn't seem to have many dependencies, other than very "classic" ones. The few packages I mentioned implement an external support for glmtoolbox, absolutely not needed for it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions