Skip to content

Kaplan meier; Added range_with_cens_info statistic to s_surv_time()#1481

Merged
Melkiades merged 38 commits into
insightsengineering:mainfrom
munoztd0:kaplan_meier
Jun 10, 2026
Merged

Kaplan meier; Added range_with_cens_info statistic to s_surv_time()#1481
Melkiades merged 38 commits into
insightsengineering:mainfrom
munoztd0:kaplan_meier

Conversation

@munoztd0

@munoztd0 munoztd0 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Pull Request

Fixes johnsonandjohnson/junco#160

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

  • Added range_with_cens_info statistic to s_surv_time().
  • Converted s_surv_time()to exported functions.

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

@munoztd0

munoztd0 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

@Melkiades there is unrelated lint issue to my PR, want me to check it out or let it be ?

@Melkiades

Copy link
Copy Markdown
Contributor

@Melkiades there is unrelated lint issue to my PR, want me to check it out or let it be ?

it is not a blocker in general (you could merge the PR even if with those) but it is happening everytime we touch a file in {tern} so probably better to do correct it when it happens (it is only removing return calls where not needed to be explicit)

Comment thread R/formatting_functions.R Outdated
Comment thread R/survival_time.R Outdated
Comment thread R/formatting_functions.R Outdated
Comment thread R/survival_time.R
Comment thread R/survival_time.R Outdated
Comment thread R/formatting_functions.R
Comment thread tests/testthat/_snaps/survival_time.md
@munoztd0

munoztd0 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@Melkiades I think I addressed all previous comments

@munoztd0 munoztd0 requested a review from Melkiades June 5, 2026 14:56
munoztd0 and others added 3 commits June 5, 2026 16:56
Co-authored-by: Daniel Sabanes Bove <danielinteractive@users.noreply.github.com>
Signed-off-by: David Muñoz Tord <david.munoztord@mailbox.org>
Signed-off-by: David Muñoz Tord <david.munoztord@mailbox.org>

@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 and @danielinteractive for your work!!

@munoztd0

Copy link
Copy Markdown
Contributor Author

Lgtm!! Thanks @munoztd0 and @danielinteractive for your work!!

Of course , I am glad it got back into tern.

Can we merge the PRs now ?

@Melkiades Melkiades merged commit ca5bf4c into insightsengineering:main Jun 10, 2026
28 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 10, 2026
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: Survival time analysis: Kaplan-Meier summary

3 participants