Skip to content

Add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param,#1480

Open
munoztd0 wants to merge 3 commits into
insightsengineering:mainfrom
munoztd0:port_s_ancova_j
Open

Add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param,#1480
munoztd0 wants to merge 3 commits into
insightsengineering:mainfrom
munoztd0:port_s_ancova_j

Conversation

@munoztd0
Copy link
Copy Markdown
Contributor

@munoztd0 munoztd0 commented May 29, 2026

Pull Request

Fixes johnsonandjohnson/junco#161

Motivation

These enhancements have been in production use in the junco package
(https://github.com/johnsonandjohnson/junco) and are being contributed
back to tern.

Changes

  • 3 new statistics in s_ancova(): lsmean_se, lsmean_ci,
    lsmean_diffci — expose per-arm adjusted mean with SE/CI, and a
    combined diff+CI statistic for single-row display.
  • weights_emmeans parameter surfaced on s_ancova() (was already accepted by h_ancova() but not
    exposed upstream).

These are all NULL default changes and should not cause any breaking changes

PS: Fix some lints from previous PR #1474

@munoztd0
Copy link
Copy Markdown
Contributor Author

@danielinteractive

@munoztd0 munoztd0 marked this pull request as draft June 2, 2026 13:26
@munoztd0 munoztd0 changed the title feat: add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param, and export s_ancova() feat: add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param, and add range_with_cens_info statistic to s_surv_time Jun 2, 2026
@munoztd0 munoztd0 marked this pull request as ready for review June 2, 2026 13:31
@munoztd0 munoztd0 changed the title feat: add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param, and add range_with_cens_info statistic to s_surv_time feat: add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param, Jun 2, 2026
@munoztd0 munoztd0 changed the title feat: add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param, Add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param, Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: tern: ANCOVA extensions and summaries

1 participant