{mmrm}
: A Robust and Comprehensive R Package for Implementing Mixed Models for Repeated MeasuresuseR! 2024
RCONIS
July 9, 2024
Thanks to all other authors of {mmrm}
:
Thanks for discussions and contributions from:
openstatsware
openstatsware
{mmrm}
openstatsware
openstatsware
openstatsguide
and the corresponding poster tomorrow!{mmrm}
lme4
with lmerTest
, learned that this approach failed on large data sets (slow, did not converge)nlme
does not give Satterthwaite adjusted degrees of freedom, has convergence issues, and with emmeans
it is only approximateglmmTMB
to calculate Satterthwaite adjusted degrees of freedom, but it did not workTMB
) directly
glmmTMB
C++
using the TMB
provided librariesSAS
)TMB
C++
framework for defining objective functions (Rcpp
would have been alternative interface)TMB
interface and plugged into optimizers{mmrm}
are set to a tolerance of \(10^{-3}\) when compared to SAS outputs.testthat
framework with covr
to communicate the testing coveragemmrm
emmeans
interface for least square meanstidymodels
builtin parsnip engine and recipes for streamlined model fitting workflowsteal
, tern
, rtables
integration for post processing and reportingrbmi
for conditional mean imputation!mmrm
not only supports multiple covariance structure, it also has good efficiency (due to fast implementations in C++)
Implementation | Median | First Quartile | Third Quartile |
---|---|---|---|
mmrm |
56.15 | 55.76 | 56.30 |
PROC GLIMMIX |
100.00 | 100.00 | 100.00 |
lmer |
247.02 | 245.25 | 257.46 |
gls |
687.63 | 683.50 | 692.45 |
glmmTMB |
715.90 | 708.70 | 721.57 |
{mmrm}
has small difference from SAS
mmrm
CRAN downloads: 3922 per month in the last month
GitHub repository: 101 stars as of 4th July 2024
Quite a lot of questions on StackOverflow (and internal similar question boards)
Most important features have been implemented by now, but definitely open for feature requests and grateful for any bug reports!
mmrm
is on CRAN - use this as a starting point: