(Statistical Engineering, Pharma Product Development Data Sciences, Roche)
2022-12-08
Authors:
Thanks to:
lme4 and lmerTestnlme 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 workglmmTMB is always using a random effects representation, we cannot have a real unstructured model (uses \(\sigma = \varepsilon > 0\) trick)TMB) directly - as it is also underlying glmmTMB - but code the exact model we wantC++ using the TMB provided librariesTMBC++ framework for defining objective functions (Rcpp would have been alternative interface)TMB interface and plugged into optimizersemmeans interface for least square meansmmrm is on CRAN - use this as a starting point:mmrm for you! And try it out :-)

