-
-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Hi!
Would you consider adding some diagnostics to mmrm? Sure, it can be implemented manually, residuals can be QQ-plotted, but it would be nice some ready-to-go tools for the assessment of the impact of high-residual, high-leverage and combined observations.
Currently I can reproduce the MMRM with nlme::gls() and use predictmeans::CookD(model)
https://rdrr.io/cran/predictmeans/

It's also possible to run OLS and ignore the dependency in data, then check the residuals via olsrr package or use the low-level internal base R functions (dfbetas, dffits, cooks.distance). In many scenarios this may suffice, but complicates the whole process. And, because clusters are now ignored, the threshold for Cook's distance changes (4/n) between GLS and OLS.
For the purpose of inference (Wald's mostly) I'd much prefer DFBETAs. or at least Cook's d (combining leverage and residual distance).
Currently I can get them for the OLS-fit model. But since the within-subject correlation can affect the estimated model coefficients through the GLS (or GEE) estimation, at the end of the day there may be a discrepancy between OLS and GLS. OK, I don't care about the actual estimates, only about the influence, so highly influential observations will "manifest" themselves in both cases, but still I'd prefer to have it on-board for the gls/mmrm.
Sometimes I also replace GLS with GEE and use the methods available for GEE: dfbeta.glmgee
https://github.com/cran/glmtoolbox/blob/master/R/geeglm.R
Metadata
Metadata
Assignees
Labels
Type
Projects
Status