Skip to content

v0.3.19

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Oct 05:29
· 4 commits to main since this release
2080047

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 R component 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, the kr_comp element of such fits now contains P and the contracted matrix S_Q, while Q and R are NULL. 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 Inf with F scaling 1, which is the limit of the formulas, instead of NaN.

What's Changed

New Contributors

Full Changelog: v0.3.18...v0.3.19