Repository navigation
Bug Fixes
emmeans()now uses the fitted fixed-effect terms to construct its coefficient basis. This fixes incorrect marginal means and uncertainty estimates for models where the visit variable appears only in interactions, such as treatment-by-visit models without a visit main effect.
Miscellaneous
- Satterthwaite, empirical and linear Kenward-Roger covariance preparation now skip unused second derivatives. Linear Kenward-Roger also omits the
Rcomponent and its allocation. - Linear Kenward-Roger (
vcov = "Kenward-Roger-Linear") now calculates the adjusted coefficient covariance from contracted sums instead of looping over all pairs of covariance parameters. This is substantially faster for models with many covariance parameters, e.g. unstructured covariance with many visits, and gives the same results up to floating-point error. Consequently, thekr_compelement of such fits now containsPand the contracted matrixS_Q, whileQandRareNULL. Full Kenward-Roger fits are unchanged. - Kenward-Roger degrees of freedom now use contrast-space matrix contractions and a direct scalar shortcut, preserving the existing formulas while reducing contrast inference time.
- For one-dimensional Kenward-Roger contrasts whose variance does not depend on the covariance parameters (zero moment), the degrees of freedom are now
Infwith F scaling1, which is the limit of the formulas, instead ofNaN.
What's Changed
- Account for namespace changes in Eigen 5 by @andrjohns in #571
- 572: Add one more basic integration test to catch issues with older linear algebra modules by @danielinteractive in #573
- Design: Optimize KR etc. computations by @danielinteractive in #576
- Step 1: KR-linear and Satterthwaite use first-derivative-only caches; KR-linear skips R entirely by @danielinteractive in #577
- Step 2: contrast-space degrees of freedom and the scalar shortcut, preserving cross-group contributions and singular-hypothesis rejection. by @danielinteractive in #578
- Step 3: Contracted covariance backend by @danielinteractive in #579
- Implemented step 4 with integrated regression tests and updates to the timing benchmarks by @danielinteractive in #580
- Small fixes by @danielinteractive in #581
- new release has been done by @danielinteractive in #582
New Contributors
- @andrjohns made their first contribution in #571
Full Changelog: v0.3.18...v0.3.19