2023-07-21
Primary Goal: Collaborate to engineer R packages that implement important statistical methods to fill in critical gaps
Secondary Goal: Develop and disseminate best practices for engineering high-quality open-source statistical software
mmrm
was published on CRAN in October 2022 and updated in Decembermmrm
packagelme4
with lmerTest
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 freedommmrm
Package overviewemmeans
interface for least square means, tidymodels
for easy model fittingCovariance structures | {mmrm} |
PROC MIXED |
---|---|---|
Unstructured (Unweighted/Weighted) | X/X | X/X |
Toeplitz (hetero/homo) | X/X | X/X |
Compound symmetry (hetero/homo) | X/X | X/X |
Auto-regressive (hetero/homo) | X/X | X/X |
Ante-dependence (hetero/homo) | X/X | X |
Spatial exponential | X | X |
Method | {mmrm} |
PROC MIXED |
---|---|---|
Contain | X* | X |
Between/Within | X* | X |
Residual | X* | X |
Satterthwaite | X | X |
Kenward-Roger | X | X |
Kenward-Roger (Linear)** | X | X |
*Available through the emmeans
package.
**This is not equivalent to the KR2 setting in PROC MIXED
Contrasts and least square means estimates are available in mmrm
using:
df_1d
, df_md
emmeans
emmeans
(pairs
method)mmrm
to emmeans
PROC MIXED
and mmrm
do not adjust for multiplicity, whereas emmeans
does.