Skip to content

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

Merged
Melkiades merged 13 commits into
insightsengineering:mainfrom
munoztd0:port_s_ancova_j
Jun 11, 2026
Merged

Add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param,#1480
Melkiades merged 13 commits into
insightsengineering:mainfrom
munoztd0:port_s_ancova_j

Conversation

@munoztd0

@munoztd0 munoztd0 commented May 29, 2026

Copy link
Copy Markdown
Contributor

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.

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
Comment thread NEWS.md Outdated
Comment thread R/summarize_ancova.R Outdated
Comment thread R/summarize_ancova.R Outdated
Comment thread NEWS.md Outdated
Comment thread R/summarize_ancova.R Outdated
Comment thread tests/testthat/_snaps/summarize_ancova.md Outdated

@Melkiades Melkiades left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @munoztd0 for your work. I added a couple of comments ;)

@munoztd0

munoztd0 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @munoztd0 for your work. I added a couple of comments ;)

Thanks, for the review ! I addressed everything I could just waiting for feedback from Daniel on one or two things

@munoztd0 munoztd0 requested a review from Melkiades June 4, 2026 09:35

@Melkiades Melkiades left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!! thanks @munoztd0 for your work :)

@munoztd0

munoztd0 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@danielinteractive ok to merge ?

@danielinteractive danielinteractive left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @munoztd0 !

Comment thread NEWS.md Outdated
Co-authored-by: Daniel Sabanes Bove <danielinteractive@users.noreply.github.com>
Signed-off-by: David Muñoz Tord <david.munoztord@mailbox.org>
@munoztd0

munoztd0 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@Melkiades thanks for all the suggestions and comments, I think we are ready to merge

Signed-off-by: Davide Garolini <davide.garolini@roche.com>
@Melkiades Melkiades enabled auto-merge (squash) June 11, 2026 08:04
@Melkiades

Copy link
Copy Markdown
Contributor

why is this empty @munoztd0?

@Melkiades Melkiades merged commit 2818be8 into insightsengineering:main Jun 11, 2026
25 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
@munoztd0 munoztd0 deleted the port_s_ancova_j branch June 11, 2026 08:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: tern: ANCOVA extensions and summaries

3 participants